context menu

This commit is contained in:
Jan Prochazka
2021-03-20 08:16:32 +01:00
parent dcb4c5071a
commit efc07280a6
8 changed files with 106 additions and 20 deletions

View File

@@ -58,6 +58,7 @@
const dispatch = createEventDispatcher();
function handleClick(item) {
if (item.disabled) return;
dispatch('close');
if (item.onClick) item.onClick();
}