mirror of https://github.com/logos-co/open-law.git
fix right click bug
This commit is contained in:
parent
000c4a17ed
commit
b5b8ca07da
File diff suppressed because one or more lines are too long
143909
app/static/js/main.js
143909
app/static/js/main.js
File diff suppressed because one or more lines are too long
|
@ -29,7 +29,9 @@ const options: DropdownOptions = {
|
||||||
onShow: tooltip => {
|
onShow: tooltip => {
|
||||||
// this will close opened menu if you trigger another one
|
// this will close opened menu if you trigger another one
|
||||||
if (currentElement) {
|
if (currentElement) {
|
||||||
currentElement.hide();
|
if (tooltip !== currentElement) {
|
||||||
|
currentElement.hide();
|
||||||
|
}
|
||||||
currentElement = tooltip;
|
currentElement = tooltip;
|
||||||
} else {
|
} else {
|
||||||
currentElement = tooltip;
|
currentElement = tooltip;
|
||||||
|
|
Loading…
Reference in New Issue