Decimal number-field is not working in AEM touch UI dialog

1.3k views Asked by At

I've created a number-field in AEM(6.4) touch UI dialog. I've added step property 0.1. I've tried using 0.01 & 0.001 as well. But for certain numbers, without any pattern, it doesn't allows to select them. Dialog/Number fields gives validation error AND DOESN'T ALLOWS TO CLOSE THE DIALOG.

enter image description here

2

There are 2 answers

0
Abhishek Sinha On BEST ANSWER

Concerning the issue, Using step-String-0.0002 allows me to enter a decimal value up to 3 places and shows validation error beyond that. enter image description here enter image description here

Now, using step-String-any. Although, it's step value is 1, but allows me to enter any decimal value. enter image description here enter image description here

Reference - https://helpx.adobe.com/experience-manager/6-4/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/numberfield/index.html

Updated: In the above scenarios, a step used as String or double yields the same result

3
ronnyfm On

step should be a double, not a String.