We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0924039 commit 262f6c8Copy full SHA for 262f6c8
1 file changed
js/bootstrap-datepicker.js
@@ -212,11 +212,15 @@
212
[$(document), {
213
mousedown: $.proxy(function (e) {
214
// Clicked outside the datepicker, hide it
215
+ var _size = function (o) {
216
+ return o.length || (o.size && o.size());
217
+ }
218
+
219
if (!(
220
this.element.is(e.target) ||
- this.element.find(e.target).size() ||
221
+ _size(this.element.find(e.target)) ||
222
this.picker.is(e.target) ||
- this.picker.find(e.target).size()
223
+ _size(this.picker.find(e.target))
224
)) {
225
this.hide();
226
}
0 commit comments