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
The current VNumberInput does not automatically handle non-numeric min and max values, nor does it provide fallback mechanisms for values exceeding JavaScript's safe integer ranges, resulting in possible input errors or unexpected behavior.
Proposed solution
Implement a parsing mechanism to interpret min and max, and automatically resort to Number.MIN_SAFE_INTEGER or Number.MAX_SAFE_INTEGER when inputs are invalid or exceed safe numeric limits, ensuring robust and predictable component behavior.
Enhanced the `VNumberInput` component to include parsing logic for `min` and `max` properties. Implemented automatic fallback to `Number.MIN_SAFE_INTEGER` and `Number.MAX_SAFE_INTEGER` when values are non-numeric or exceed safe integer ranges. This ensures consistent and reliable behavior under edge cases.
resolvesvuetifyjs#20788
By setting them to Infinity and -Infinity you would override these defaults and accept numbers outside of range that framework defined as reasonable boundaries for typical use. But that's not the problem here anyways.
The problem in the Playground
So adding "1" results in the same value. Seems like it is what "SAFE" means - once you exceeded safe range, math does not apply.
Problem to solve
The current VNumberInput does not automatically handle non-numeric min and max values, nor does it provide fallback mechanisms for values exceeding JavaScript's safe integer ranges, resulting in possible input errors or unexpected behavior.
Proposed solution
Implement a parsing mechanism to interpret min and max, and automatically resort to Number.MIN_SAFE_INTEGER or Number.MAX_SAFE_INTEGER when inputs are invalid or exceed safe numeric limits, ensuring robust and predictable component behavior.
Playground
The text was updated successfully, but these errors were encountered: