Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
750
igPercentEditor truncates values to 4 decimals when in focus and problems with german regional
posted

Hi,

I'm using the igPercentEditor with knockout binding and noticed that the underlying value changes when the user just focuses the editor without entering a new value. When the regional option is set to "de-DE" the value additionally gets multiplied by 10000.

I have prepared an example here: http://jsfiddle.net/b2xzk3hy/5/

with v16.2.20162.2040 i'm seeing the following behavior:

C: If you focus the input the value gets truncated to 4 decimals. (I would expect the value only to change when a new number is entered)

D (Same as C, but regional is "de-DE"): If you focus the input the value changes from 0.123456789 to 1234

  • 10685
    Offline posted

    Hello Robin,  

    Regarding the text being truncated, please notice when using updateMode: 'immediate', the plain input is updated immediately with the igEditor’s text when enter editing mode, no matter what the underneath value is and this is why the expected behavior differs from you require. Please notice by default the updateMode is onChange, and using it may be closer to what you would expect from these value interactions.

    http://jsfiddle.net/j940dg6s/  

    Apart from this, I have logged and issue regarding D - the 10000 multiply for the regional "de-DE" and it will be further investigated. You can track the progress of the issue here à https://github.com/IgniteUI/ignite-ui/issues/695