Skip to content

Commit

Permalink
Update web_src/js/features/colorpicker.js
Browse files Browse the repository at this point in the history
  • Loading branch information
silverwind authored Mar 26, 2024
1 parent cb5b94e commit 22f7b91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_src/js/features/colorpicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function initColorPickers(selector = 'input.color-picker', opts = {
for (const inputEl of inputEls) {
const parent = inputEl.closest('.color.picker');
// prevent tabbing on color "button"
parent.querySelector('button').tabIndex = '-1';
parent.querySelector('button').tabIndex = -1;
// init precolors
for (const el of parent.querySelectorAll('.precolors .color')) {
el.addEventListener('click', (e) => {
Expand Down

0 comments on commit 22f7b91

Please sign in to comment.