[ ] Regression (a behavior that stopped working in a new release)
[ x ] Bug report
[ ] Performance issue
[ ] Documentation issue or request
Current behavior
This is my data. From top to bottom. The first {iv:null} is the default value. The second is a select date.
The third though is when i clear the date. I expected a {iv:null} but receive a {}. This cause errors.
Expected behavior
When I clear a DateTime field, the data should be {iv:null}.
Minimal reproduction of the problem
Create DateTime field in schema (invariant). Save a DateTime. Remove DateTime (by using the X).
I just added an ugly value == null check. This works for us, because all our properties are nullable.
I dont know if this behaviour is usefull for others.
In my opinion the best solution would be to set the value to { “iv”, null } when invariant properties are cleared. But again… I can’t say if this is possible / breaking for other code.