This commit is contained in:
Ahmed Chelly 2025-12-25 06:42:00 -08:00 committed by GitHub
commit c8696744dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,7 +243,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (
EventHandler.one(target, EVENT_HIDDEN, () => {
// focus on trigger when it is closed
if (isVisible(this)) {
this.focus()
this.focus({ preventScroll: true })
}
})