Skip to content

Commit f8a9940

Browse files
committed
AC-1206: Color code is not filled out textfield after user press enter value and hit Enter key using keyboard
- Fix issues with colorpicker not being triggered
1 parent 163c828 commit f8a9940

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/web/jquery/spectrum/spectrum.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,13 +463,9 @@
463463
set($(e.target).closest(".sp-thumb-el").data("color"));
464464
move();
465465

466-
// If the picker is going to close immediately, a palette selection
467-
// is a change. Otherwise, it's a move only.
466+
updateOriginalInput(true);
468467
if (opts.hideAfterPaletteSelect) {
469-
updateOriginalInput(true);
470468
hide();
471-
} else {
472-
updateOriginalInput();
473469
}
474470
}
475471

@@ -593,7 +589,7 @@
593589
if (tiny.isValid()) {
594590
set(tiny);
595591
move();
596-
updateOriginalInput();
592+
updateOriginalInput(true);
597593
}
598594
else {
599595
textInput.addClass("sp-validation-error");

0 commit comments

Comments
 (0)