mirror of
https://github.com/ijprest/keyboard-layout-editor.git
synced 2026-04-18 05:30:16 -07:00
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:
parent
f5cbfa3555
commit
9544fc8c6c
1 changed files with 1 additions and 1 deletions
2
kb.js
2
kb.js
|
|
@ -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" }
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue