Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

switch button not updating when 'default' is 'on' #19

Open
bfiessinger opened this issue Jul 20, 2020 · 0 comments
Open

switch button not updating when 'default' is 'on' #19

bfiessinger opened this issue Jul 20, 2020 · 0 comments

Comments

@bfiessinger
Copy link

Currently with a configuration like

$cmb2_box->add_field( [
	'name'			=> 'some name',
	'desc'			=> 'some desc',
	'id'				=> 'some_id',
	'type'			=> 'switch_button',
	'default'		=> 'on'
] );

the switch_button won't update the checked status after saving settings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant