How exactly do we only allow floating points numbers with bootstrap vue form inputs?
For example: 1.0, 2.20. For usability reasons I try to avoid the number type.
<template>
<b-form-input value="text" @update="handler"></b-form-input>
</template>
<script>
export default {
data() {
return {
text: ''
}
}
}
</script>
In vanilla.js I would do a regex check inside the handler and return false if the input does not fit the desired pattern, therefore preventing the user to type in anything other than decimal numbers. What is the vue + bootstrap way to achieve this?