mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Dropdown: Fixes missing calls to onVisibilityChange causing wrong caret states (#87923)
This commit is contained in:
parent
93acc0c932
commit
ce18b2f983
@ -73,12 +73,12 @@ export const Dropdown = React.memo(({ children, overlay, placement, offset, onVi
|
||||
const animationStyles = useStyles2(getStyles, animationDuration);
|
||||
|
||||
const onOverlayClicked = () => {
|
||||
setShow(false);
|
||||
handleOpenChange(false);
|
||||
};
|
||||
|
||||
const handleKeys = (event: React.KeyboardEvent) => {
|
||||
if (event.key === 'Tab') {
|
||||
setShow(false);
|
||||
handleOpenChange(false);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user