Closed lucasmerat closed 4 years ago
Realizing now that we hand-rolled a wrapper on paper input to make these errors clear when the input is touched again.
Going to do the same with paper select, but this might be a nice feature across ember paper
The way to do this is to use customValidations
.
That should be an array with a message
and a validade
property. When validate function returns true, message is applied.
errors
is supposed to be a property given to the component to show errors directly.
In when I pass in errors, I get an error state, but when I select an option, that error state is not cleared.
On the it seems that the error is cleared once some content is typed into the field.
Is there another property I should be passing in that I am missing?
Here is the code:
Here's an image showing a selected item with the error state still active