-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
bind-required doesn't work on <paper-input>s #21460
Comments
So far, we have not been able to reproduce the issue. We are not sure if you are using polymer.js alone or also the Dart wrappers with polymer.dart. Jake was able to bind the When you say version v0.2 of polymer, do you mean polymer.js? That version sounds a bit outdated too (they are currently on version 0.4.2 I believe). So it's possible that updating to the latest version will fix the issue for you, if not, the problem could be in the angular hooks to interact with polymer elements (If so, you can let them know in their issue tracker: https://github.com/angular/angular.dart/ so they can investigate). Added NeedsInfo label. |
This comment was originally written by [email protected]
I guess this might be a problem on the angular.dart side, since we had a different problem with <paper-radio-button>s and "bind-selected" that ended up being angular issue: dart-archive/angular.dart#1449 I will file a new bug for angular.dart (sorry, wasn't sure where to file this, and someone suggested filing to here). :) |
No worries - glad to hear we are narrowing down where the issue could be :) I just saw the issue you created over there, so I'll close this bug for now and mark it as a duplicate of dart-archive/angular.dart#1588, but feel free to reply here if there is something else we can help with on our end. Added MovedToGithub label. |
This issue has been moved to dart-archive/polymer-dart#331. |
This issue was originally filed by [email protected]
Use case:
I would like to dynamically set whether a <paper-input> is required by using "bind-required." This is using a polymer js <paper-input> with a angulardart backing model.
e.g.
<paper-input type="text" bind-required="myRequiredBool"></paper-input>
Expected result:
The paper input is set to required if the variable is true, and not otherwise.
Actual result:
The paper input is always has required set to false.
If I change the attribute to "bind-disabled," the disabled attribute toggles as expected, so it looks like bind-required isn't being hooked up correctly.
Please include the following information:
The text was updated successfully, but these errors were encountered: