Skip to content

Commit bd32210

Browse files
csanterobtecu
authored andcommitted
replace sendAction call with closure action
1 parent 59baeac commit bd32210

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

addon/components/bs-datetimepicker.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ export default Component.extend(DynamicAttributeBindings, {
7373
let newDate = e.date && e.date.toDate() || null;
7474

7575
this.set('date', newDate);
76-
this.sendAction('change', newDate);
76+
if (this.change) {
77+
this.change(newDate);
78+
}
7779
});
7880

7981
this.addObserver('date', function() {

0 commit comments

Comments
 (0)