From d47b1fb7c8ae8f486f1a570ae02ad20ced4feac1 Mon Sep 17 00:00:00 2001 From: Emma Date: Sat, 11 May 2024 20:26:57 -0400 Subject: [PATCH] Remove check for `role` === `button` in `ft-prompt (#5096) --- src/renderer/components/ft-prompt/ft-prompt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/ft-prompt/ft-prompt.js b/src/renderer/components/ft-prompt/ft-prompt.js index ae91f31208e1..ce18fad404e7 100644 --- a/src/renderer/components/ft-prompt/ft-prompt.js +++ b/src/renderer/components/ft-prompt/ft-prompt.js @@ -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() } },