cmb2-extension icon indicating copy to clipboard operation
cmb2-extension copied to clipboard

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

Open bfiessinger opened this issue 3 years ago • 0 comments

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.

bfiessinger avatar Jul 20 '20 16:07 bfiessinger