We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2472ce9 commit acc30fbCopy full SHA for acc30fb
packages/vuetify/src/components/VNumberInput/VNumberInput.tsx
@@ -247,6 +247,9 @@ export const VNumberInput = genericComponent<VNumberInputSlots>()({
247
if (potentialNewInputVal.split(decimalSeparator.value)[1]?.length > props.precision) {
248
e.preventDefault()
249
inputElement!.value = potentialNewNumber
250
+
251
+ const cursorPosition = (selectionStart ?? 0) + e.data.length
252
+ inputElement!.setSelectionRange(cursorPosition, cursorPosition)
253
}
254
// Ignore decimal separator when precision = 0
255
if (props.precision === 0 && potentialNewInputVal.includes(decimalSeparator.value)) {
0 commit comments