Skip to content

Commit ddde056

Browse files
committed
Bug - You couldn't manually delete everything in the textbox
1 parent 04a8610 commit ddde056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scripts/directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@
286286
control[0].$setDirty();
287287
}
288288
} else {
289-
if (newValue === null) {
289+
if (newValue === null || newValue === '') {
290290
$scope.hue = undefined;
291291
$scope.saturation = undefined;
292292
$scope.lightness = undefined;

0 commit comments

Comments
 (0)