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

bind-required doesn't work on <paper-input>s #21460

Closed
DartBot opened this issue Oct 29, 2014 · 4 comments
Closed

bind-required doesn't work on <paper-input>s #21460

DartBot opened this issue Oct 29, 2014 · 4 comments
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.

Comments

@DartBot
Copy link

DartBot commented Oct 29, 2014

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:

  • Dart SDK version: 1.6.0-dev.9.0
  • polymer package version: v0.2
  • Operating system: Goobuntu Trusty
  • Browser (if any): Chrome Version 38.0.2125.111 (64-bit)
@sigmundch
Copy link
Member

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 required field when he used the latest versions of the Dart packages (polymer.dart 0.15.1+3 and the Dart wrappers in paper_elements 0.5.0).

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.

@DartBot
Copy link
Author

DartBot commented Nov 3, 2014

This comment was originally written by [email protected]


We are not sure if you are using polymer.js alone or also the Dart wrappers with polymer.dart.
polymer.js only

When you say version v0.2 of polymer, do you mean polymer.js?
Yes. However, I think I was actually mistaken when I put v0.2 as the version number, and I think I'm actually already on v0.4.2.

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). :)

@sigmundch
Copy link
Member

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.

@DartBot DartBot added Type-Defect area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams. labels Nov 4, 2014
@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

This issue has been moved to dart-archive/polymer-dart#331.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-pkg Used for miscellaneous pkg/ packages not associated with specific area- teams.
Projects
None yet
Development

No branches or pull requests

3 participants