I am having trouble returning the label inside the paper input container after submitting the form. The form is a simple login form. If the user logs back in again and again without refreshing the page (from the browser), the label seems to be stuck, as if the input had a value.
Here is an image to show the difference:

Here is the form inside the element:
<form is="iron-form"> <paper-input-container id="email_container"> <paper-input-error>E-mail or Password is incorrect</paper-input-error> <label>E-Mail Address</label> <input is="iron-input" id="email" on-blur="validateEmail" value="{{emailInput::input}}"> </paper-input-container> <paper-input-container id="password_container"> <label>Password</label> <input is="iron-input" id="password" type="password" value="{{passwordInput::input}}"> </paper-input-container> <paper-button raised dialog-dismiss>Cancel</paper-button> <paper-button raised on-tap="handleCsrf">Login</paper-button> </form>
These two approaches both get the form in the post-login state:
// this.emailInput = null; this.passwordInput = null; // this.emailInput = ""; this.passwordInput = "";
I thought this would reset the entire container in some way, but it does nothing:
this.$.email_container = null; this.$.password_container = null;
javascript polymer
anthony
source share