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.
Asked
Active
Viewed 1,219 times
0

Abhishek Sinha
- 113
- 11
2 Answers
0
step
should be a double
, not a String
.

ronnyfm
- 1,973
- 25
- 31
-
Using step as String and not Double does not makes much of a difference. Please refer this https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/form/numberfield/index.html – Abhishek Sinha May 22 '20 at 08:30
-
1Interesting, for 6.5 is listed as double: https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/granite-ui/api/jcr_root/libs/granite/ui/components/foundation/form/numberfield/index.html – ronnyfm May 22 '20 at 21:37
-
1Well then, my issue will be resolved when we'll migrate to 6.5. Until then i can go with the solution available for for **6.4(as specified in the question)**. Thanks for digging out solution – Abhishek Sinha May 23 '20 at 15:18
0
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.
Now, using step-String-any
. Although, it's step value is 1, but allows me to enter any decimal value.
Updated: In the above scenarios, a step used as String or double yields the same result

Abhishek Sinha
- 113
- 11