Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 3cbcc27

Browse files
Googlernshahan
authored andcommitted
SelectedTime is not reset when the time is set programmatically.
This CL fix #274 PiperOrigin-RevId: 207095433
1 parent 97d8122 commit 3cbcc27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/material_datepicker/material_time_picker.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class MaterialTimePickerComponent extends KeyboardHandlerMixin
7979
value?.minute != _time?.minute ||
8080
value?.isUtc != _time?.isUtc)) {
8181
_time = value;
82+
selectedTime.clear();
8283
_timeChangeController.add(time);
8384
}
8485
setInputErrorText(_validateTime(time));

0 commit comments

Comments
 (0)