Closed 978165754 closed 1 year ago
你好,我只看到了onChange事件监听,但我只想等关闭面板的时候执行某个事件,而不是每次改变颜色都执行,如果能加一个onClose来监听关闭了颜色面板就好了
onClose :(color, input)=>{ console.log('color, input: ', color, input); }
You can listen for a close event on the input field.
myColorField.addEventListener('close', event => { // Do something when the color picker is closed });
你好,我只看到了onChange事件监听,但我只想等关闭面板的时候执行某个事件,而不是每次改变颜色都执行,如果能加一个onClose来监听关闭了颜色面板就好了