We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This is similar to #8197 but related to focus trigger (especially mouse focus) so I decided to create a separate issue.
focus
Expected the popover to not open on target focusin when there's already another overlay opened on target click:
focusin
Note, opening the dialog doesn't move focus to it immediately so that focusin event is still handled by popover.
<vaadin-button id="button">Target</vaadin-button> <vaadin-popover for="button" position="bottom-start"></vaadin-popover> <vaadin-dialog></vaadin-dialog> <script type="module"> import '@vaadin/button'; import '@vaadin/dialog'; import '@vaadin/popover'; const popover = document.querySelector('vaadin-popover'); popover.trigger = ['focus']; const dialog = document.querySelector('vaadin-dialog'); const button = document.querySelector('vaadin-button'); button.addEventListener('click', () => { dialog.opened = true; }); popover.renderer = (root) => { root.textContent = 'Popover text'; }; dialog.renderer = (root) => { root.textContent = 'Dialog content'; } </script>
Vaadin version(s): 24.5, 24.6
Issue is not browser related
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
This is similar to #8197 but related to
focus
trigger (especially mouse focus) so I decided to create a separate issue.Expected outcome
Expected the popover to not open on target
focusin
when there's already another overlay opened on target click:popover-dialog.mp4
Note, opening the dialog doesn't move focus to it immediately so that
focusin
event is still handled by popover.Minimal reproducible example
Steps to reproduce
Environment
Vaadin version(s): 24.5, 24.6
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: