Skip to content

Commit

Permalink
Prevent ft-icon-button dropdown mousedown events from bubbling up
Browse files Browse the repository at this point in the history
This fixes selections on an ft-icon-button dropdown from affecting the parent, which was causing a bug wherein choosing a selection from the dropdown removed/added that video as a selection in Selection Mode.
  • Loading branch information
kommunarr committed Sep 26, 2023
1 parent 5b13d8d commit b0d40b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/components/ft-icon-button/ft-icon-button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
:tabindex="option.type === 'divider' ? '-1' : '0'"
:class="option.type === 'divider' ? 'listItemDivider' : 'listItem'"
@click.stop="handleDropdownClick({url: option.value, index: index}, $event)"
@mousedown.stop.prevent
@keydown.enter.stop="handleDropdownClick({url: option.value, index: index}, $event)"
@keydown.space.stop="handleDropdownClick({url: option.value, index: index}, $event)"
>
Expand Down

0 comments on commit b0d40b7

Please sign in to comment.