Skip to content

Commit

Permalink
Don't close modal on focus change (#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 Dec 31, 2024
1 parent 57bf3bb commit 0ef4a01
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 0ef4a01

Please sign in to comment.