kallookoo / wp-color-picker-alpha

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

TypeError: Cannot read properties of undefined (reading '_super') #53

Open Regnalf opened 1 month ago

Regnalf commented 1 month ago

I get the following error when I try to use the script:

screenshot_ 2024-06-24 um 21 41 45

The field is converted into a colour selection field, but no colour selection window opens when you click on it.

Regnalf commented 1 month ago

And it seems not to work with multiple color fields!

hakito commented 2 weeks ago

Shouldn't this line

https://github.com/kallookoo/wp-color-picker-alpha/blob/399e2d9c107e27cf5c3937c960cd1d9b356465f3/src/wp-color-picker-alpha.js#L271

be

this._super();
wildoperation commented 2 weeks ago

Shouldn't this line

https://github.com/kallookoo/wp-color-picker-alpha/blob/399e2d9c107e27cf5c3937c960cd1d9b356465f3/src/wp-color-picker-alpha.js#L271

be

this._super();

This fixed the error for me and the picker appears to work as expected now.

Thanks!