Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

floatingLabel not updated when value set programatically #174

Open
steelbrain opened this issue Apr 7, 2015 · 1 comment
Open

floatingLabel not updated when value set programatically #174

steelbrain opened this issue Apr 7, 2015 · 1 comment

Comments

@steelbrain
Copy link

I am not sure if the issue is with the <paper-input value={{value}} /> as well, but I am setting it's value via this.shadowRoot.querySelector('paper-input').value = 'testVal';

Expected Results

When it's value is non-null, the label should float automatically.

Actual Results

The label doesn't float automatically, but it does when we click on it. and stays there like it should.

@JonathanPicques
Copy link

I have the exact same problem, however I found a workaround,
See http://plnkr.co/edit/t4VMwoBtETCmF7imh3E6?p=preview

valueChanged: function() {
    this.$.decorator.focusAction();
    this.$.decorator.inputAction();
    this.$.decorator.blurAction();
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants