Skip to content

Commit

Permalink
Don't close modal on focus change (FreeTubeApp#6492)
Browse files Browse the repository at this point in the history
Opening modal causes focus change, so if you close modal on focus out, it won't open modal
  • Loading branch information
MarmadileManteater authored and Alban Dumas committed Jan 24, 2025
1 parent 5028cdd commit 5d22308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/ft-icon-button/ft-icon-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export default defineComponent({
},

handleDropdownFocusOut: function () {
if (this.dropdownShown && !this.$refs.ftIconButton.matches(':focus-within')) {
if (!this.useModal && this.dropdownShown && !this.$refs.ftIconButton.matches(':focus-within')) {
this.dropdownShown = false
}
},
Expand Down

0 comments on commit 5d22308

Please sign in to comment.