Empty field handled as NULL instead of ZERO
Currently, if you type a number and then erase it, the component handles it as ZERO instead of NULL (or maybe unassigned...)
The same happens if you type only "-". It accepts the minus signal, but internally handles it as ZERO.
I would suggest handling both cases as null value.
It is because this directive returns ONLY numbers. It is by design (in previous version 1.x.x there was discussion about it) Each value before return is passed to this function:
function prepareResponse(value) {
return Number(value);
}
Thanks for your reply!
I've opened this issue because I have a CRUD page that makes use of your directive and was not able to identify when the user erases the number... I'd like to store it as null, but I could not say if the user had typed zero or just erased the field.
Do you suggest any way to distinguish these situations?
Thanks a lot.
Sorry for my late responses. Im unfortunately very busy. I will again consider your case. If so during weekend I will fix it.
Hello!
Any news on this issue?
Thanks in advance!