kallookoo / wp-color-picker-alpha

Overwrite Automattic Iris for enabled Alpha Channel in wpColorPicker
GNU General Public License v2.0
132 stars 88 forks source link

Add ability to skip debounce #49

Closed andrewbotz closed 1 year ago

andrewbotz commented 1 year ago

Problem :

Debouncing the input after 100ms auto-completes the input, particularly from a short-hand hex input.

Example, typing #390 will auto-complete to #339900 after 100ms. Also attempting to correct the auto-completed input will result in another debounce and auto-completion (see video).

https://github.com/kallookoo/wp-color-picker-alpha/assets/62450648/5c796f2f-b1c7-4ff9-8f57-d07fde993045

Fix :

Would like to add the ability to disable debouncing the input through option setting of data-alpha-skip-debounce.

kallookoo commented 1 year ago

Hello, I understand what you say and although not an original option of the iris, I think it's good to include it and I will also include the debounce time as another option.