Mentions Autocomplete is re-rendeing on each keypress #55299
Labels
[Focus] Accessibility (a11y)
Changes that impact accessibility and need corresponding review (e.g. markup changes).
[Package] Editor
/packages/editor
[Priority] Low
Used to indicate that the issue at hand isn't a top priority to address and can be handled later
[Type] Bug
An existing feature does not function as intended
Description
Originally mentioned in #55118 (comment)
The constant rerendering of the results popup is causing issues for accessibility.
The responsible part seems to be the popup cloning via
createPortal
as it does not rerender when that part is removed. Kudos to @chad1008 for pinning it down.cc: @ellatrix, since you worked on this part recently.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2023-10-06.at.11.40.02.copy.mov
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: