when using the code inside a step in the udstepper from the following example we found some minor bugs.
$TextboxParams = @{
Type = 'number';
Placeholder = 4 ;
Value = 4;
Minimum = 1;
Maximum = 64;
HelperText = 'Number of CPU Sockets (1 Core per Socket)';
}
New-UDTextbox -Id 'textbox15' @TextboxParams
When deleting the number value in the number textbox (f.e. pressing backspace), a 0 will be automatically entered, even though 1 is the minimum value (if you enter 65, it will be correctly changed to 64)
Then, if this “hack” causes the number 0 to appear in the text field and you enter other numbers behind the 0, (f.e. 22) the entered values will be added -> result will be f.e. 022
Also, 0 is validated as OK (also 022 is validated as OK) and you can move on to the next step (no validation error)
Value after pressing Next is also 022 or the number entered after the 0
See video and screenshots below.
Thanks
René
Expected behavior
0 should not be allowed in minium value is 1
022, 02 etc. should not be possible if Minimum is 1 and Maximum is 64
Actual behavior
0 is allowed
022 and 02 are allowed (or any other number between the given Minimum to Maximium range (1-64) the 0.
Version
4.3.4
Severity
Low
Environment
msi
Steps to Reproduce
Hi,
when using the code inside a step in the udstepper from the following example we found some minor bugs.
0
will be automatically entered, even though 1 is the minimum value (if you enter 65, it will be correctly changed to 64)0
to appear in the text field and you enter other numbers behind the0
, (f.e.22
) the entered values will be added -> result will be f.e.022
0
is validated as OK (also022
is validated as OK) and you can move on to the next step (no validation error)022
or the number entered after the0
See video and screenshots below.
Thanks René
Expected behavior
0
should not be allowed in minium value is 1022
,02
etc. should not be possible if Minimum is1
and Maximum is64
Actual behavior
Additional Environment data
No response
Screenshots/Animations
https://github.com/user-attachments/assets/c382ea68-2844-41c3-b97e-04b6f56648c5