Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No minimum text length #54

Open
Shahriarabedi opened this issue Jul 20, 2023 · 1 comment
Open

No minimum text length #54

Shahriarabedi opened this issue Jul 20, 2023 · 1 comment

Comments

@Shahriarabedi
Copy link

Hello, I want to use this plugin without a minimum, that is, there is no need to write at least 3 letters.
what should I do?

@mustardBees
Copy link
Owner

@Shahriarabedi AFAIK this plugin doesn't specify a default minimum value.

Can you confirm the version you're running and post your meta box configuration?

When defining the field, you can configuration Select2 via its system of data-* attributes. For example, to set the minimum search term length to 0:

$example_meta_box->add_field( array(
	'name'          => 'Example',
	'id'            => $prefix . 'example',
	'type'          => 'pw_select',
	'options_cb'    => 'iweb_get_cmb2_post_options',
	'attributes'    => array(
		'data-minimum-input-length' => 0,
	),
) );

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

No branches or pull requests

2 participants