-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
On template creation, don't show search if not needed #42357
On template creation, don't show search if not needed #42357
Conversation
Size Change: +29 B (0%) Total Size: 1.25 MB
ℹ️ View Unchanged
|
packages/edit-site/src/components/add-new-template/add-custom-template-modal.js
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ntsekouras, I noticed the following warning in the console when testing this PR.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well in my tests.
I left one comment regarding the ref
usage, but I trust your judgment on this one, Nik. Let's make sure to update the comment before merging.
Thanks George! Created a quick PR about that: #42392 |
b928de5
to
0274cae
Compare
What?
Resolves: #42337
When creating a template for something like a Category, we should not render a search box if we have less than the initial results we suggest, as they are shown directly. The current number of the initial suggestions are
10
.Before
After