google / google/material-design-lite
Sync components state
- Dominant language
- HTML
- Stars
- 32.2k
- Forks
- 4.9k
- PR merge metrics
- No merged PRs in 30d
Description
I'm not sure if is possible, but I'm using mdl on a webpage that uses forms, and when the form is empty all works perfectly, but when you would edit one and the page load the data, is there any way to sync the mdl components to their respective state? For example in a textfield with data filled call to any function or something to add the class is-dirty. Another example, if I use a datetimepicker associated to a mdl textfield the is-dirty and is-focused not trigger properly. I found a workaround to solve this adding and removing the correct classes from the objects, but I think this is not the best practise. Any help? I not found anything about this.
Contributor guide
Assessment
This issue has not been assessed yet.