Merge branch 'main' into ronid1/offcanvas_static_backdrop

This commit is contained in:
XhmikosR 2023-03-29 07:54:00 +03:00 committed by GitHub
commit 6237e89b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -279,8 +279,7 @@ const EventHandler = {
defaultPrevented = jQueryEvent.isDefaultPrevented()
}
let evt = new Event(event, { bubbles, cancelable: true })
evt = hydrateObj(evt, args)
const evt = hydrateObj(new Event(event, { bubbles, cancelable: true }), args)
if (defaultPrevented) {
evt.preventDefault()