LinkControl: screen jumps when you click on the search result to select the #28373
Labels
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Type] Bug
An existing feature does not function as intended
Description
When adding a link in the paragraph block, if the paragraph is long and does not fit in the current viewport, and if the user clicks on the search result to add the link, the screen jumps. It's a little annoying experience.
Step-by-step reproduction instructions
CMD + K
or click on Link format icon from the block toolbar to add the link.Expected behaviour
The screen should not jump at the top of the paragraph block after user adds the link by clicking on the search result from mouse.
Actual behaviour
The screen jumps at the top of the paragraph block after user adds the link by clicking on the search result from mouse.
If the paragraph is small and fits in the current viewport, the jump doesn't happen. Screen stays as is.
If the user uses keyboard up/down keys to select the search results and add the link, the jump doesn't happen. Screen stays as is.
Jump happens only when user uses mouse and clicks on search result, to add the link.
Screenshots or screen recording (optional)
Jump happens when using mouse click.
Jump doesn't happen when small paragraph which fits into viewport.
Jump doesn't happen when using keyboard up/down keys.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: