mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 00:54:04 +02:00
Event handler: replace deprecated initEvent
This commit is contained in:
@@ -169,8 +169,7 @@ describe('Backdrop', () => {
|
||||
}
|
||||
|
||||
instance.show(() => {
|
||||
const clickEvent = document.createEvent('MouseEvents')
|
||||
clickEvent.initEvent('mousedown', true, true)
|
||||
const clickEvent = new Event('mousedown', { bubbles: true, cancelable: true })
|
||||
document.querySelector(CLASS_BACKDROP).dispatchEvent(clickEvent)
|
||||
endTest()
|
||||
})
|
||||
|
Reference in New Issue
Block a user