We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4987612 + 1af90a4 commit 94eb411Copy full SHA for 94eb411
js/bootstrap-datepicker.js
@@ -41,7 +41,7 @@
41
this.format = DPGlobal.parseFormat(options.format||this.element.data('date-format')||dates[this.language].format||'mm/dd/yyyy');
42
this.isInline = false;
43
this.isInput = this.element.is('input');
44
- this.component = this.element.is('.date') ? this.element.find('.add-on') : false;
+ this.component = this.element.is('.date') ? this.element.find('.add-on, .btn') : false;
45
this.hasInput = this.component && this.element.find('input').length;
46
if(this.component && this.component.length === 0)
47
this.component = false;
0 commit comments