Autocomplete Validation not working


Topic: Autocomplete Validation not working

Tobias.Weber pro premium priority asked 2 years ago

*Expected behavior*Autocomplete should only be valid if a user select a value from the dropdown list.

*Actual behavior*If I use :isValidated="false" and :isValid="false" it will be directly overwritten if one character is typed in the text field and the field is now valid.

https://mdbootstrap.com/snippets/vue/tobias-weber/4608973


Bartosz Cylwik staff answered 2 years ago

Hi! This validation is working thanks to required props in autocomplete component and is checking if the input is empty or not. Unfortunately Autocomplete is not supported by our validation for now (validation). We will discuss this in our team. Best Regards!


Tobias.Weber pro premium priority commented 2 years ago

Thank you. There is a Validation Section in the Autocomplete Element Documentation (https://mdbootstrap.com/docs/vue/forms/autocomplete/#section-validation) so it suggests that this function exists. Hopefully the very important function will be available in the next release :-)


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: Pro
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: MDB5 3.1.0
  • Device: Windows
  • Browser: Chrome
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes