Skip to content

Commit

Permalink
Remove check for role === button in `ft-prompt (#5096)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarmadileManteater committed May 12, 2024
1 parent 7685d75 commit d47b1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/ft-prompt/ft-prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default defineComponent({
this.$emit('click', null)
},
handleHide: function (event) {
if (event.target.getAttribute('role') === 'button' || event.target.className === 'prompt') {
if (event.target.className === 'prompt') {
this.hide()
}
},
Expand Down

0 comments on commit d47b1fb

Please sign in to comment.