joejordanbrown / popover

Angular CDK Popover, no default style, examples using @angular/material
MIT License
212 stars 75 forks source link

Mouseleave when using a hover trigger sets focus to trigger #484

Closed sinap-se closed 3 years ago

sinap-se commented 3 years ago

Bug, feature request, or proposal:

Bug. When using 'hover' for the trigger mechanism, mouseexit causes the trigger to receive focus as hover does not mark the popover as being triggered by the mouse instead of the keyboard.

What is the expected behaviour?

Focus remains unchanged.

What is the current behaviour?

Focus is set to the trigger.

What are the steps to reproduce?

Provide a working example using StackBlitz (or similar) to reproduce the problem. StackBlitz Template: https://stackblitz.com/fork/mde-popover https://mde-popover-awddtn.stackblitz.io

What is the use-case or motivation for changing an existing behaviour?

It's bad behavior.

Which versions of Angular, Material-Extended, OS, TypeScript, browsers are affected?

mde: 3.0.3+

Other Comments

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.