mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-30 15:24:08 +03:00
Collapse - Fix check to not prevent event for input and textarea
This commit is contained in:
+1
-1
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user