Remove check for `role` === `button` in `ft-prompt (#5096)

This commit is contained in:
Emma 2024-05-11 20:26:57 -04:00 committed by GitHub
parent 7685d75e79
commit d47b1fb7c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}
},