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

Incompatibility with angular ng-model (check poc) #58

Open
felquis opened this issue Jul 27, 2016 · 2 comments
Open

Incompatibility with angular ng-model (check poc) #58

felquis opened this issue Jul 27, 2016 · 2 comments

Comments

@felquis
Copy link

felquis commented Jul 27, 2016

POC http://codepen.io/felquis/pen/kXpbjv

Hi, I spent some time today debugging my application and I found out the error was caused by the ng-model with a number.

I fixed it just changing the number to a string, you may like to know about this issue.

Best.

@felquis
Copy link
Author

felquis commented Jul 27, 2016

I looks like a problem with Angular, so. I created a issue there too angular/angular#10322

@c-dante
Copy link

c-dante commented Nov 3, 2016

Hey, the problem here is that tether.select doesn't listen to property changes on the select DOM element.

Angular modifies the DOM node's .value property (and the corresponding .selected property on the options).

Tether.Select only listens for attribute and element mutations when pushing an update. Mutation events aren't able to detect property changes -- you could make a directive that requires ngModel and pushes a data attr to the select node.

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

No branches or pull requests

2 participants