Topic: Vuejs MDBInput maximum length only works with the counter property

guisup priority asked 1 year ago


Expected behavior:maxLength:" " property restricting number of characters in the input

Actual behavior:maxLength:" " property is only considered if we use the counter property alongside it. We want it to also work without the counter property

Resources (screenshots, code snippets etc.)The component example (Character counter) shown in MDB

  <MDBInput :maxlength="20" label="Example label" />

Bartosz Cylwik staff answered 1 year ago


Hi, if you don't want to see the counter under the input, you can set it's display property to none: .form-counter { display: none } Thank you for your request. 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

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Vue
  • MDB Version: MDB5 3.0.0
  • Device: Asus VivoBook, Dell
  • Browser: Firefox and Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: No