Material Design Lite: How to programatically reset a floating label input text
问题 I am currently building a Single Page App with knockout.js and Material Design Lite. I have a form which allow creating (and persisting) a new entity. The first time the form is used, the floating label input works correctly. But after that, if I reset the values of the fields through knockout observables (i.e. set the field values to "" in order to be able enter the values for another new entity) the floating label doesn't reset: the floating label still floats above the field, while it