Guido Zockoll
Guido Zockoll

Reputation: 151

quasar select use-input validation rule

I am using a QSelect component from Quasar framework v1.9.2

it uses use-input and a filter function. I want to use some kind of validation for the input to indicate that the user has to type at least two characters.

But when using rules attribute the validation works on the current selection, not on the use-input field. How can i apply validation rules on the input field?

Upvotes: 0

Views: 2430

Answers (1)

ashraf jebril
ashraf jebril

Reputation: 46

I hope this would helps you can use binding error like that:

:error="attribute.length>2"

Upvotes: 3

Related Questions