Skip to content

Commit 0ef4a01

Browse files
Don't close modal on focus change (#6492)
Opening modal causes focus change, so if you close modal on focus out, it won't open modal
1 parent 57bf3bb commit 0ef4a01

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
@@ -153,7 +153,7 @@ export default defineComponent({
153153
},
154154

155155
handleDropdownFocusOut: function () {
156-
if (this.dropdownShown && !this.$refs.ftIconButton.matches(':focus-within')) {
156+
if (!this.useModal && this.dropdownShown && !this.$refs.ftIconButton.matches(':focus-within')) {
157157
this.dropdownShown = false
158158
}
159159
},

0 commit comments

Comments
 (0)