mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
stopPropagation() on Menu toggle event
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
8d9ac313ad
commit
20f63a023b
@ -226,7 +226,9 @@ export class Menu extends React.Component<MenuProps, State> {
|
|||||||
this.props.close();
|
this.props.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
toggle() {
|
toggle(event: MouseEvent) {
|
||||||
|
event.stopPropagation();
|
||||||
|
|
||||||
if (this.isOpen) {
|
if (this.isOpen) {
|
||||||
this.close();
|
this.close();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user