Topic: Number input label not going up when the value is set to 0 with v-model
hexasysteme pro premium priority asked 2 years ago
Expected behavior
The label of the number type input should go up with a default value of 0
Actual behavior
The label does not go up when the input value is set to 0 with v-model. I tried to do a parseInt on the value i'm trying to display but it doesn't change anyhting and the label is still stuck in the input.
Resources (screenshots, code snippets etc.)
You can find below the code i'm using to display the MDBInput.
<MDBCol md="fill">
<MDBInput
type = "number"
label = "Nombre de décimales"
v-model = "currentZone.nombreDecimales"
:invalidFeedback = "formMessages.messageNombreDecimales"
:isValid = "formMessages.validNombreDecimales"
:isValidated = "formMessages.formIsValidated"
/>
</MDBCol>
Bartosz Cylwik staff answered 2 years ago
Hi, thanks for letting us now. We are going to work on this. I don't know if it will be usefull for you but "0" as a string is working fine. Best Regards!
hexasysteme pro premium priority commented 2 years ago
Thanks for your reply, "0" with a string works fine for now with some conversions in the code ! Best regards!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB Vue
- MDB Version: MDB5 3.2.0
- Device: All
- Browser: Firefox
- OS: Windows 11
- Provided sample code: No
- Provided link: No