Skip to content

Commit

Permalink
Update dist files and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbassit committed Jun 2, 2022
1 parent 7d753ae commit 8907eeb
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion dist/coloris.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
alpha: true,
forceAlpha: false,
focusInput: true,
selectInput: false,
autoClose: false,
inline: false,
defaultColor: '#000000',
Expand Down Expand Up @@ -201,10 +202,14 @@
updatePickerPosition();
setColorFromStr(oldColor);

if (settings.focusInput) {
if (settings.focusInput || settings.selectInput) {
colorValue.focus({ preventScroll: true });
}

if (settings.selectInput) {
colorValue.select();
}

// Trigger an "open" event
currentEl.dispatchEvent(new Event('open', { bubbles: true }));
});
Expand Down
Loading

0 comments on commit 8907eeb

Please sign in to comment.