The bug occurs when using a button/icon to open a function that opens a component, if after the component has opened you hit "enter" it will open again as the focus is still on the button
To Reproduce
Steps to reproduce the behavior:
Go to codesandbox
Click on popup/popover button bugged
Press enter
See error
Open popup/popover button not bugged
Press enter
See no error
For resolve the problem we can use document.activeElement.blur(); on component open.
Describe the bug
The bug occurs when using a button/icon to open a function that opens a component, if after the component has opened you hit "enter" it will open again as the focus is still on the button
To Reproduce
Steps to reproduce the behavior:
For resolve the problem we can use
document.activeElement.blur();
on component open.