This commit is contained in:
2025-12-03 16:19:39 +02:00
parent 00fe0306f1
commit 188e6ee4ee
3 changed files with 4 additions and 8 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export class Cancelable {
that.iconHandler.classList.add('hide');
that.target.dxTrigger('clear');
Ut.trigger(events.clear, that);
Ut.trigger(events.onClear, that);
});
}
}
+1 -1
View File
@@ -94,7 +94,7 @@ export class DatePicker {
if (this.isToggled && this.opts.cancelable) {
new Cancelable(this.target, {
clear: () => that.clear()
onClear: _ => that.clear()
});
}
+2 -6
View File
@@ -241,16 +241,12 @@ export class TwoDatePicker {
if (this.opts.cancelable) {
this.target.dxOn('clear', function(e) {
this.target.dxOn('clear', _ => {
that.clear();
Ut.trigger(that.events.onChange, that, null, false);
that.target.dxTrigger('changed');
});
}
// Click outside - Handler
document.body.dxOn('click.two_datepicker' + this.ekey, _ => this.hide());