Link modal closes upon typing into UrlInput when toolbar is docked to the paragraph
Issue Overview
The link dialog only works when the toolbar is docked to the top. When the toolbar is docked to the block the link dialog is closed as soon as any attempt to type into it.
Steps to Reproduce (for bugs)
- Set the "Toolbar" setting to "Fix toolbar to block"
- Create a paragraph block and type some words.
- Place the cursor in the middle of a word and click the link button
- Try to type into the link URL input field.
I have replicated this in Chrome and Firefox on Linux Mint.
Expected Behavior
I expect that the link dialog will remain visible and the letters typed will appear in the URL input.
Current Behavior
The link dialog is closed immediately.
Possible Solution
I suspect this bug is being caused by the slot/fill system causing the events to be sent to a different element.
Screenshots / Video
link dialog closing when attached to the block

link dialog working when docked to the top

Related Issues and/or PRs
No known related issues.
Note that the initial suspicion was wrong. It was caused by the code that hides the toolbar during typing. As the key press events from the url input were going to the block they were triggering the toolbar hiding and as the url input is part of the toolbar it was getting hidden too.