Merge pull request #1249 from hgiesel/dropdownfix
Adapt use of createDropdown for editor buttons
This commit is contained in:
commit
6b87a022bb
@ -65,7 +65,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
<ButtonGroupItem>
|
||||
<WithDropdownMenu let:createDropdown let:menuId>
|
||||
<OnlyEditable let:disabled>
|
||||
<IconButton {disabled} on:mount={createDropdown}>
|
||||
<IconButton
|
||||
{disabled}
|
||||
on:mount={(event) => createDropdown(event.detail.button)}
|
||||
>
|
||||
{@html listOptionsIcon}
|
||||
</IconButton>
|
||||
</OnlyEditable>
|
||||
|
@ -88,7 +88,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
<ButtonGroupItem>
|
||||
<WithDropdownMenu let:createDropdown let:menuId>
|
||||
<WithContext key={disabledKey} let:context={disabled}>
|
||||
<IconButton {disabled} on:mount={createDropdown}>
|
||||
<IconButton
|
||||
{disabled}
|
||||
on:mount={(event) => createDropdown(event.detail.button)}
|
||||
>
|
||||
{@html functionIcon}
|
||||
</IconButton>
|
||||
</WithContext>
|
||||
|
Loading…
Reference in New Issue
Block a user