-
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
Feature : Refactor Autocomplete using DropdownMenu #66192
base: trunk
Are you sure you want to change the base?
Feature : Refactor Autocomplete using DropdownMenu #66192
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Hi @mirka 👋
I was wondering if you could help me with resolving these blockers? Thanks |
Hey @Vrishabhsk , thank you for the work so far! Before diving into detailed code review, I have some high-level feedback:
Having said that, if we tweak Alternatively, we could simply deprecate Does this make sense, @mirka , or am I misinterpreting the task? |
Hi @ciampo 👋
Let me know the further steps here. Thanks |
I'd like to hear @mirka 's thoughts too before deciding next steps. In any case, if we were to use a dropdown menu implementation, I think it should be the V2 (which, by the way, is still experimental and is currently undergoing major API changes like #66289 and #66383, which should let us avoid hacks like rendering empty fragments for the icon trigger etc). I had a quick look at your refactor and could spot a few parts that need changing. More in general, I believe that using the dropdown menu component may require a bit of a deeper refactor than simply swapping in components. |
@ciampo This sounds good to me. I remember at some point we were talking about replacing the In this case, next steps would be to make changes in DropdownMenuV2? |
Yup! Working on these changes in #66383, will ping you all once they're ready for review |
What?
Autocomplete
component usingDropdownMenu
instead of customListBox
Why?
Issues
Type / to chose a block
text disappears when the/
is erased/
, it works perfectly but when thepopover is open
, and weswitch tab
or thewindow
and return to editor and remove the/
, an error is thrown whichbreaks the block
.