Skip to content

Commit 4a4df7c

Browse files
MarmadileManteaterOothecaPickle
authored andcommitted
Don't close modal on focus change (FreeTubeApp#6492)
Opening modal causes focus change, so if you close modal on focus out, it won't open modal
1 parent 9e44164 commit 4a4df7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/components/ft-icon-button/ft-icon-button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default defineComponent({
121121
handleDropdownFocusOut: function () {
122122
if (this.mouseDownOnIcon) {
123123
this.mouseDownOnIcon = false
124-
} else if (!this.$refs.dropdown.matches(':focus-within')) {
124+
} else if (!this.useModal && !this.$refs.dropdown.matches(':focus-within')) {
125125
this.dropdownShown = false
126126
}
127127
},

0 commit comments

Comments
 (0)