Skip to content

Commit 94eb411

Browse files
committed
Merge uxsolutions#356 from cdeszaq/patch-1
Add support for an appended button as a target
2 parents 4987612 + 1af90a4 commit 94eb411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/bootstrap-datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
this.format = DPGlobal.parseFormat(options.format||this.element.data('date-format')||dates[this.language].format||'mm/dd/yyyy');
4242
this.isInline = false;
4343
this.isInput = this.element.is('input');
44-
this.component = this.element.is('.date') ? this.element.find('.add-on') : false;
44+
this.component = this.element.is('.date') ? this.element.find('.add-on, .btn') : false;
4545
this.hasInput = this.component && this.element.find('input').length;
4646
if(this.component && this.component.length === 0)
4747
this.component = false;

0 commit comments

Comments
 (0)