Fix color pickers

-- ngChange/ngBlur were being called *before* the value changed
-- Something to do with it being a directive and using '&'; switched to
'='.
-- Fixes #89.
This commit is contained in:
Ian Prest 2015-07-12 22:57:34 -04:00
parent f5cbfa3555
commit 9544fc8c6c

2
kb.js
View file

@ -967,7 +967,7 @@
return {
templateUrl: "colorPicker.html",
restrict: "E",
scope: { hintText: "@", pickerId: "@", pickerPosition: "@", color: "=ngModel", onChange: "&ngChange", onBlur: "&ngBlur", isDisabled: "&ngDisabled" }
scope: { hintText: "@", pickerId: "@", pickerPosition: "@", color: "=ngModel", onChange: "=ngChange", onBlur: "=ngBlur", isDisabled: "&ngDisabled" }
};
});