Merge pull request #63 from Simple2B/kostia/fix/right_click_bug

Kostia/fix/right click bug
This commit is contained in:
Костя Столярский 2023-05-22 16:14:10 +03:00 committed by GitHub
commit 854a09aeba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -29,7 +29,9 @@ const options: DropdownOptions = {
onShow: tooltip => {
// this will close opened menu if you trigger another one
if (currentElement) {
currentElement.hide();
if (tooltip !== currentElement) {
currentElement.hide();
}
currentElement = tooltip;
} else {
currentElement = tooltip;