mirror of
https://github.com/twbs/bootstrap.git
synced 2025-11-10 00:08:31 -05:00
Merge 567d1043de80ee050886a626663f00a7279c30b6 into 815af314f34add7b0a3012b703fc95884968a95e
This commit is contained in:
commit
e3ac2901fb
@ -443,7 +443,11 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, Dropdown.clearMenus)
|
|||||||
EventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus)
|
EventHandler.on(document, EVENT_KEYUP_DATA_API, Dropdown.clearMenus)
|
||||||
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (event) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
Dropdown.getOrCreateInstance(this).toggle()
|
if (/input|textarea/i.test(event.target.tagName)) {
|
||||||
|
Dropdown.getOrCreateInstance(this).show()
|
||||||
|
} else {
|
||||||
|
Dropdown.getOrCreateInstance(this).toggle()
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user