kirki: Alpha in Color Control not working since v3.1.4
Issue description:
Hi Guys,
Kirki generates [Cannot read property ‘__’ of undefined] error from file wp-color-picker-alpha.js at lines [ 21, 478 ]
This issue happened in the latest version 3.1.4, I’ve test an old website version was 3.38 and it was working properly then and after update the plugin to the latest version it generates the same error and Alpha has been disabled.
So I’m very sure it’s from the last version.
Thanks for the great plugin and for your support.
Version used:
3.1.4
Using theme_mods or options?
theme_mods
Code to reproduce the issue (config + field(s))
Kirki::add_field( MY_PREFIX, array(
'type' => 'color',
'choices' => array(
'alpha' => true,
),
) );
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 1
- Comments: 18 (7 by maintainers)
Fixed - https://github.com/kirki-framework/kirki/commit/a9c4ee53d2fc88ba9bed6b7b508443083a3c2de5
Will go live with the next update. Thanks guys! 😃
Hi,
I and many others are still facing that issue. You can test with this theme. https://wordpress.org/themes/business-event/
Goto Appearance > Customize > Blog Settings > Category Background Color
Thank You
@MapSteps @ralphjsmit
You have aggressive cache guys 😃 Just deactivate Kirki and Hard Reload the home page then reactivate it and hard reload again and you will see the problem.
Hi @MapSteps
A screenshot from my website
Thanks
I experienced exactly the same problem, so I also planned to create an issue 😉.
I tested my code with a few versions.
3.1.0: displays the alpha slider correctly.
3.1.2: displays the alpha slider correctly.
3.1.3: doesn’t display the alpha slider.
3.1.4: doesn’t display the alpha slider.
I didn’t test with 3.1.1, but I assume it works. My conclusion is that it happens after the update from 3.1.2 till 3.1.3. I tested the different Kirki versions with the WP Rollback plugin.
The alpha slider is also missing from the
backgroundcontrol.Thanks!