File tree 3 files changed +11
-8
lines changed
domino-ui/src/main/java/org/dominokit/domino/ui
3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -303,11 +303,9 @@ public Date getDate() {
303
303
public Calendar setDate (Date date ) {
304
304
Date oldDate = this .date ;
305
305
this .date = date ;
306
- if (nonNull (date )) {
307
- onDateViewUpdate (this .date );
308
- onDateSelectionChanged (this .date );
309
- triggerChangeListeners (oldDate , this .date );
310
- }
306
+ onDateViewUpdate (this .date );
307
+ onDateSelectionChanged (this .date );
308
+ triggerChangeListeners (oldDate , this .date );
311
309
return this ;
312
310
}
313
311
Original file line number Diff line number Diff line change @@ -191,9 +191,7 @@ public void onDateTimeFormatInfoChanged(DateTimeFormatInfo dateTimeFormatInfo) {
191
191
*/
192
192
@ Override
193
193
public void onDateSelectionChanged (Date date ) {
194
- if (nonNull (date )) {
195
- setDate (date );
196
- }
194
+ setDate (date );
197
195
}
198
196
199
197
/**
Original file line number Diff line number Diff line change @@ -523,6 +523,7 @@ protected void doSetValue(Date value) {
523
523
updateStringValue ();
524
524
} else {
525
525
getInputElement ().element ().value = "" ;
526
+ close ();
526
527
}
527
528
withDateSelectionToggleListeners (
528
529
false ,
@@ -538,6 +539,12 @@ private void updateStringValue() {
538
539
getFormatted (this .value , this .calendar .getDateTimeFormatInfo ());
539
540
}
540
541
542
+ @ Override
543
+ public DateBox clear (boolean silent ) {
544
+ close ();
545
+ return super .clear (silent );
546
+ }
547
+
541
548
/**
542
549
* {@inheritDoc} Returns the string value of the underlying input element.
543
550
*
You can’t perform that action at this time.
0 commit comments