mirror of
https://github.com/grafana/grafana.git
synced 2026-07-30 00:08:10 -05:00
Dropdown: Fixes missing calls to onVisibilityChange causing wrong caret states (#87923)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user