Hello,
We recently noticed that we haven't been able to update the displayed value of the igNumericEditor control while it has focus. This was noticed after our upgrade to v15.2 and was not an issue in previous versions.
I took a look at the source, and there is a conditional, directly checking if the element is focused. For now, our fix is to override the value() method of ui.igNumericEditor, but we wanted to know if there were any conditions we needed to take into consideration doing this? It is not apparent why you are checking for this condition, and what affects it may have if we override and remove it, to allow the _editorInput to be updated.
value()
ui.igNumericEditor
_editorInput
Could you please advise or offer an alternate solution?
Thanks.
Hi rehemann,
Could you add more details to your use case. You have focused numeric editor and you use value method to update the editor value, or I misunderstood?
Thanks,
You understood correctly.
We have an igNumericEditor, but when it has focus and we call .igNumericEditor("value", myValue), the editor does not update its editing value until the control becomes unfocused. This is because the source method value() is checking:
if (!this._focused) { this._editorInput.val(this._getDisplayValue()) }
To fix this for us, we override the value() method to perform all the same code, except the check for _focused, and we always allow _editorInput.val(...). We are wondering if this is the intended functionality, what the reason for this condition is, and if there are any affects of removing it, that we might need to be aware of?
This condition only seems to occur in the igNumericEditor (and thus the igCurrencyEditor), but no other control that I can see, and wasn't present in past versions.
Thanks!
Thank you for reporting this.
I would like to let you know that this issue is already fixed. According to our Service Release schedule a build with the fix will be available around the end of March.
http://es.infragistics.com/support/service-releases
What is more if you can’t wait until then I can provide you a be-weekly build. Note that a be-weekly build is not official so it will not be run against our numerous test.
Best Regards, Marina Stoyanova, Software Developer, Infragistics, Inc.