Disable function dropdown when no field selected

This commit is contained in:
Henrik Giesel 2021-06-18 02:51:42 +02:00
parent 767af9e478
commit bfe2bdecc0

View file

@ -87,9 +87,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<ButtonGroupItem>
<WithDropdownMenu let:createDropdown let:menuId>
<IconButton on:mount={createDropdown}>
{@html functionIcon}
</IconButton>
<WithContext key={disabledKey} let:context={disabled}>
<IconButton {disabled} on:mount={createDropdown}>
{@html functionIcon}
</IconButton>
</WithContext>
<DropdownMenu id={menuId}>
<WithShortcut