1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 15:44:51 +02:00

Collapse - Fix check to not prevent event for input and textarea

This commit is contained in:
Johann-S
2017-03-29 00:10:27 +02:00
committed by GitHub
parent 48c5efa4c3
commit fb42d6e043
2 changed files with 3 additions and 2 deletions

View File

@@ -357,7 +357,7 @@ const Collapse = (($) => {
*/
$(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
if (/input|textarea/i.test(event.target.tagName)) {
if (!/input|textarea/i.test(event.target.tagName)) {
event.preventDefault()
}