bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

call resset() do not remove 'collapse' class in collapse plugin

Open pktangyue opened this issue 14 years ago • 2 comments

line 90: this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') in bootstrap-collapse.js when it call reset() ,the value of size is 'undefined' which isn't equal to 'null'.that will return addClass which i think is uncorrect. So I suggest use undefined instead of null here.

pktangyue avatar Aug 30 '12 02:08 pktangyue

Or like I said in #4842, just use size != null which matches both null and undefined.

richardp-au avatar Aug 30 '12 06:08 richardp-au

Closing as dupe of #4842 then.

mdo avatar Sep 01 '12 05:09 mdo