Skip to content

Commit c535f1a

Browse files
committed
fix(VNumberInput): ignore custom type
fixes #22110
1 parent 44002f6 commit c535f1a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/api-generator/src/locale/en/VNumberInput.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"min": "Specifies the minimum allowable value for the input.",
99
"minFractionDigits": "Specifies the minimum fraction digits to be displayed (capped to `precision`). Defaults to `precision` when not explicitly set.",
1010
"precision": "Enforces strict precision. It is expected to be an integer value in range between `0` and `15`, or null for unrestricted.",
11-
"step": "Defines the interval between allowed values when the user increments or decrements the input"
11+
"step": "Defines the interval between allowed values when the user increments or decrements the input",
12+
"type": "**IGNORED** underlying input is always of type 'text'"
1213
},
1314
"slots": {
1415
"decrement": "Slot for customizing the decrement button or icon used to decrease the value of the input.",

packages/vuetify/src/components/VNumberInput/VNumberInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({
349349
}
350350

351351
useRender(() => {
352-
const { modelValue: _, ...textFieldProps } = VTextField.filterProps(props)
352+
const { modelValue: _, type, ...textFieldProps } = VTextField.filterProps(props)
353353

354354
function incrementControlNode () {
355355
return !slots.increment ? (

0 commit comments

Comments
 (0)