mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
848606a3be
commit
86e58ef33a
|
@ -316,7 +316,7 @@ func (picker *timePickerData) handleCommand(self View, command PropertyName, dat
|
||||||
switch command {
|
switch command {
|
||||||
case "textChanged":
|
case "textChanged":
|
||||||
if text, ok := data.PropertyValue("text"); ok {
|
if text, ok := data.PropertyValue("text"); ok {
|
||||||
if value, err := time.Parse(timeFormat, text); err == nil {
|
if value, ok := stringToTime(text); ok {
|
||||||
oldValue := GetTimePickerValue(picker)
|
oldValue := GetTimePickerValue(picker)
|
||||||
picker.properties[TimePickerValue] = value
|
picker.properties[TimePickerValue] = value
|
||||||
if value != oldValue {
|
if value != oldValue {
|
||||||
|
|
Loading…
Reference in New Issue