Replies: 3 comments 2 replies
-
The data attribute is only available on v0. For v1, you can use the error or valid state of the field metadata to update the class name or data attribute as you preferred. |
Beta Was this translation helpful? Give feedback.
-
Valid state apply class even when input wasn't touched yet. I did something close to what I want with this
Need to check both errors and value. If value is empty, then input wasn't touched yet. Doesn't look super clean to be honest, so I decided to remove Still wonder maybe there's more appropriate way to do what I needed? |
Beta Was this translation helpful? Give feedback.
-
BTW, the library is awesome, so glad I've tried it!!! Thank you so much! |
Beta Was this translation helpful? Give feedback.
-
Did found it in current docs. I've found some old mentions about
data-conform-touched
but I don't see it in my forms. How do you handle valid/invalid styling then? Does conform provide any help with it?Beta Was this translation helpful? Give feedback.
All reactions