kirki icon indicating copy to clipboard operation
kirki copied to clipboard

repeater control

Open sauravxtha opened this issue 4 years ago • 4 comments

Issue description:

After creating a brand new repeater the 1st one created automatically dosent work. but everything works well after deleating the first automatically created one. is it intended to work that way or am i doing something wrong please help.

Version used:

3.1.8

Using theme_mods or options?

theme_mod

Code to reproduce the issue (config + field(s))

Kirki::add_field(
	'beatsmandu_kirki_config',
	array(
		'type'         => 'repeater',
		'label'        => esc_html__( 'Services', 'beatsmandu' ),
		'section'      => 'frontpage_services',
		'row_label'    => array(
			'type'  => 'text',
			'value' => esc_html__( 'Service', 'beatsmandu' ),
		),
		'button_label' => esc_html__( 'Add New Service', 'beatsmandu' ),
		'settings'     => 'services',
		'fields'       => array(
			'image'       => array(
				'type'  => 'image',
				'label' => esc_html__( 'Image', 'beatsmandu' ),
			),
			'title'       => array(
				'type'  => 'text',
				'label' => esc_html__( 'Service Title', 'beatsmandu' ),
			),
			'description' => array(
				'type'  => 'textarea',
				'label' => esc_html__( 'Service Description', 'beatsmandu' ),
			),
		),
	)
);

sauravxtha avatar Jul 05 '21 09:07 sauravxtha

I'm experiencing the same issue with several people reporting this. @MapSteps , any idea what is going on here?

A potential fix could perhaps be to stop the repeater from auto-creating the first item.

AlxMedia avatar Oct 30 '21 15:10 AlxMedia

@contactjavas - any chance to get a fix for this in Beta 3?

AlxMedia avatar Nov 04 '21 14:11 AlxMedia

Hi @sauravxtha & @AlxMedia , just want to confirm, this is still an issue in v4.0.22 right?

contactjavas avatar Mar 01 '22 01:03 contactjavas

@contactjavas Sorry for a late reply, I can confirm the issue still exist in 4.0.22.

AlxMedia avatar Mar 29 '22 15:03 AlxMedia