We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clickHandler()
chatgpt.alert()
1 parent 2784391 commit 8f13defCopy full SHA for 8f13def
chatgpt.js
@@ -229,7 +229,7 @@ const chatgpt = {
229
230
// Define click/key handlers
231
const clickHandler = event => { // explicitly defined to support removal post-dismissal
232
- if (event.target == event.currentTarget || event.target instanceof SVGPathElement) dismissAlert(); };
+ if (event.target == event.currentTarget || event.target.closest('[class*="-close-btn]')) dismissAlert(); };
233
const keyHandler = event => { // to dismiss active alert
234
if (/^(?: |Space|Enter|Return|Esc)/.test(event.key) || [32, 13, 27].includes(event.keyCode)) {
235
for (const alertId of alertQueue) { // look to handle only if triggering alert is active
0 commit comments