Skip to content
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

Default binding mode not obeyed of custom attributes on input tags #253

Closed
JeroenVinke opened this issue Jan 21, 2016 · 3 comments
Closed
Labels

Comments

@JeroenVinke
Copy link
Collaborator

I have a bindable inside a custom attribute with two-way binding as default. When I put this attribute on an input tag and use bind, the default binding mode is ignored and one-way databinding is used.

plunker: http://plnkr.co/edit/aKqPmKlrRHXEu39BzJRV?p=preview

@jwahyoung
Copy link

@jdanyow This may need to be tagged as a bug.

@Thanood
Copy link

Thanood commented Jan 29, 2016

This seems to apply to <select> elements, too.
http://plnkr.co/edit/pQBcziEVQsf5wHJl1Qti?p=preview

@Vaccano
Copy link

Vaccano commented Feb 26, 2016

Not sure if it adds info for this bug, but I hit it while doing the "options" style binding too.

http://stackoverflow.com/questions/35658280/two-way-binding-in-an-aurelia-custom-attribute

Seems obvious in retrospect, but a workaround to this issue is to update your HTML to use .two-way instead of just .bind. (Thanks to @JeroenVinke for pointing this out to me.)

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

No branches or pull requests

5 participants