Color Picker JavaScript Change Event
I'm trying to add a live preview of an element that uses a custom color defined in a filament ColorPicker. In javascript I'd like to add an event listener on the input which runs whenever the value of the input is changed.
picker.addEventListener('input', () => {...})
only triggers when the value is manually changed by typing on the keyboard. But if the input value is changed by dragging around on the color picker popup, the event is not triggered.
Is there some other javascript event that is dispatched whenever someone drags on the color picker popup, or is there some other way to hook into that?0 Replies