Skip to content

Commit

Permalink
Collapse - Fix check to not prevent event for input and textarea
Browse files Browse the repository at this point in the history
  • Loading branch information
Johann-S committed Mar 28, 2017
1 parent 48c5efa commit be51f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit be51f36

Please sign in to comment.