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

contentTypes not passed from ContentPicker to ContentSearch #12

Closed
johnwatkins0 opened this issue Feb 23, 2021 · 0 comments · Fixed by #13
Closed

contentTypes not passed from ContentPicker to ContentSearch #12

johnwatkins0 opened this issue Feb 23, 2021 · 0 comments · Fixed by #13
Assignees
Labels
[Type] Bug Something isn't working

Comments

@johnwatkins0
Copy link
Member

PR incoming.

Describe the bug

<ContentSearch
placeholder={placeholder}
label={label}
excludeItems={excludeItems}
onSelectItem={handleSelect}
/>

Because contentTypes is not passed down, the default content types (post and page) are always used.

Steps to Reproduce

  1. Use a ContentPicker component with a custom post type set as the contentType
  2. Try the search
  3. See that only posts and pages are returned

Expected behavior

Content picker can be restricted to a CPT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant