mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-26 23:54:23 +01:00
dropdown: Move constant
This commit is contained in:
parent
a8887ea8a8
commit
7d3bc44bb0
@ -359,10 +359,6 @@ class Dropdown extends BaseComponent {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
const relatedTarget = {
|
|
||||||
relatedTarget: context._element
|
|
||||||
}
|
|
||||||
|
|
||||||
const composedPath = event.composedPath()
|
const composedPath = event.composedPath()
|
||||||
const isMenuTarget = composedPath.includes(context._menu)
|
const isMenuTarget = composedPath.includes(context._menu)
|
||||||
if (
|
if (
|
||||||
@ -378,6 +374,8 @@ class Dropdown extends BaseComponent {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const relatedTarget = { relatedTarget: context._element }
|
||||||
|
|
||||||
if (event.type === 'click') {
|
if (event.type === 'click') {
|
||||||
relatedTarget.clickEvent = event
|
relatedTarget.clickEvent = event
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user