-
Notifications
You must be signed in to change notification settings - Fork 892
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Textfield] add name attribute and reflect input value to element attribute #46
Conversation
I see a commit with an input Also, it would be useful to be able to handle the |
@pitus .. you're right .. i'll update this PR with on-input instead of on-change. |
Just out of curiosity, cant the value attribute be binded to? |
@mkay581 i guess you think about a 2 ways binding like Polymer 1,2 did but with lit and lit-element that doesn't work.
|
hmm, on the Polymer 3 site, it shows an example of data binding using lit-html. since the code in this component assigns the new value to return html`<label>{{_myInput}}</label>
<mwc-textfield value="{{_myInput}}"></mwc-textfield>`
} EDITED: small syntax change |
@mkay581 .. ok, i understand the confusion, Polymer and lit-html both use html`` helpers : |
@eskan For some reason I have the same problem with the mwc-checkbox where the So what's wrong with my using |
@pitus i've updated this PR to allow change and value-changed events, may you test this ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it normal that you didn't use "composed: true" in the CustomEvent ?
@omar-belkhodja-bacdev : input change event isn't a composed event so i reproduce this behavior |
outdated |
Hi Liters,
a PR to improve text-field component, and get it work with "iron-form":
Regards,