Is there a way to prevent users from entering a decimal point in the input field below?
<b-form-input
size="sm"
type="number"
v-model.number="lots"
class="inputprice"
style="width:40%"
oninput="javascript: if (this.value === '.') return;"
>{{ lots }}
</b-form-input>
I've tried adding the validation inside the 'oninput' attribute, but it doesn't seem to be working. Does anyone know how I can achieve this restriction?