1
0
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:
GeoSot
2021-12-16 13:23:17 +02:00
committed by XhmikosR
parent 640542e606
commit fa93995123
4 changed files with 6 additions and 15 deletions

View File

@@ -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()
})