Skip to content

Commit

Permalink
fix gauge value eval
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed May 7, 2018
1 parent ffff22a commit cecc011
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ui-gauge/ui-gauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ angular.module('ui').directive('uiGauge', [ '$timeout', '$interpolate',

var oldUnits = "";
unreg = scope.$watch('me.item.value', function(newValue) {
newValue = scope.$eval('me.item.getText()');
if (isNaN(newValue = parseFloat(newValue))) {
newValue = gaugeOptions.min;
}
Expand Down

0 comments on commit cecc011

Please sign in to comment.