google / google/material-design-lite

Sync components state

Open
#4,194 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.