Weird things occur when setting and unsetting a DateTimePicker value
When trying to set (or unset) the value of a DateTimePicker, weird things happen. I prepared this example to show what I'm experiencing. Please, let me know if you experience the same, or if I'm missing something.
Add the fields above to a form and then change the value of the first select.
Add the fields above to a form and then change the value of the first select.
- When the value is set to Draft, the fields below are expected to be emptied as it occurs with the text input.
- When the value is set to Published, the fields below are expected to be updated with the current timestamp as it occurs with the text input.
- The non native field accepts a new date when it's initially empty but rather than being cleared when the select is set to **Draft**, it changes to a different date time value (which isn't even the current timestamp).
- The native field is worse, as it doesn't even change no matter what I do with the select.