mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Disable function dropdown when no field selected
This commit is contained in:
parent
767af9e478
commit
bfe2bdecc0
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue