You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Shift+Arrow steps by 1 instead of 10*step for string steps like "1.00" ("1e-7" becomes "1e-70") #761
When step is a string whose fractional digits are all zeros (such as step="1.00" or step="1.0", used to preserve display precision) or scientific notation ("1e-7", 1e21), Shift + Arrow does not change the value by 10 * step: "1.00" steps by 1 ("1.000") instead of 10, and "1e-7" steps by 1e-70.
Expected output: onStep called with 15 and offset: '10', input.value: 15.00, and getDecupleSteps returning "10", "10", "-10", "0.000001", and "10000000000000000000000" for the last five inputs.
In src/utils/numberUtil.ts, getDecupleSteps normalizes the input into stepStr ("1.00" trims to "1" and 1e21 expands via num2str), but the !hasPoint branch returns step + '0' instead of using stepStr, and string scientific notation like "1e-7" is not expanded before shifting the decimal point.
Version: @rc-component/input-number@1.8.0 and master (868bd31), tested with react@19.2.7 on Node v26.13.0. (Feature added in #438.)
Activity