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

Add "disabled" prop to ContentSearch #265

Open
1 task done
xavortm opened this issue Sep 20, 2023 · 0 comments
Open
1 task done

Add "disabled" prop to ContentSearch #265

xavortm opened this issue Sep 20, 2023 · 0 comments
Labels

Comments

@xavortm
Copy link
Member

xavortm commented Sep 20, 2023

Is your enhancement related to a problem? Please describe.

I want to disable the ContentSearch for card items that are part of the query loop.

Example:

<ContentSearch
	label={__('Select a Post or Page', 'project')}
	contentTypes={['post']}
	onSelectItem={(post) => setAttributes({ selectedPost: post })}
	placeholder={__('Search for a post', 'project')}
	disabled={context.queryId != null}
/>

Designs

CleanShot 2023-09-20 at 16 17 34@2x

Describe alternatives you've considered

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants