We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 613fa5c commit 414598aCopy full SHA for 414598a
src/scripts/controller.js
@@ -46,7 +46,7 @@ export default class AngularColorPickerController {
46
47
this.$scope.control[0].$setValidity(this.$element.attr('name'), this.isValid);
48
49
- if (oldValue !== undefined && typeof this.$scope.control[0].$setDirty === 'function') {
+ if (newValue !== oldValue && oldValue !== undefined && typeof this.$scope.control[0].$setDirty === 'function') {
50
this.$scope.control[0].$setDirty();
51
}
52
} else {
0 commit comments