Describe the bug
I have a nullable time field. When I click on DateTimeFormField for a null time to set a date and then click 'Cancel' to cancel the change, 'onChanged' is fired and change my field anyway. It should not modify my field or at least it should be null like initialValue.
To Reproduce
Steps to reproduce the behavior:
Click on DateTimeFormField with null initialValue
Click on 'Cancel'
See that onChanged is executed with the default value of widget (instead of null)
Expected behavior
If "initialValue" is null at first and then I click "Cancel", it should not trigger "onChanged". If it must execute "onChanged", the value returned should be null.
Screenshots
Desktop (please complete the following information):
Describe the bug I have a nullable time field. When I click on DateTimeFormField for a null time to set a date and then click 'Cancel' to cancel the change, 'onChanged' is fired and change my field anyway. It should not modify my field or at least it should be null like initialValue.
To Reproduce Steps to reproduce the behavior:
Expected behavior If "initialValue" is null at first and then I click "Cancel", it should not trigger "onChanged". If it must execute "onChanged", the value returned should be null.
Screenshots
Desktop (please complete the following information):