Closed yuwu9145 closed 1 week ago
fixes #19438 fixes #19558 fixes #19538 fixes #19494
type="number"
toFixed()
<template> <h1>{{ model }}</h1> <v-number-input v-model="model" :max="10" :min="0" :step="0.03" /> </template> <script setup> import { ref } from 'vue' const model = ref(0) </script>
fixes #19438 fixes #19558 fixes #19538 fixes #19494
type="number"
to avoid all sorts of weird behaviours in native number input. More details from Why the GOV.UK Design System team changed the input type for numberstoFixed()
to cope with JS Floating-Point Precision IssuesDescription
Markup: