context menu refactor

This commit is contained in:
Jan Prochazka
2021-04-07 17:57:05 +02:00
parent e84d231a10
commit 82b63c70ed
4 changed files with 31 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
const rect = domButton.getBoundingClientRect();
const left = rect.left;
const top = rect.bottom;
currentDropDownMenu.set({ left, top, items: _.isFunction(menu) ? menu() : menu });
currentDropDownMenu.set({ left, top, items: menu });
}
</script>