Topic: Number input label not going up when the value is set to 0 with v-model

hexasysteme priority asked 1 week 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.) What the input looks like

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 1 week 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 priority commented 1 week ago

Thanks for your reply, "0" with a string works fine for now with some conversions in the code ! Best regards!



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • User: Priority
  • 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