-
Notifications
You must be signed in to change notification settings - Fork 55
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
"selectable" property only works for immediate children #42
Comments
Just hit this -- surprised to find this disparity between 0.5 and 1.0 -- the
|
Seems to have gotten worse. I've been using the below pattern a lot.
until recently this worked fine (in fact at the last demo before the customer). Now it is broken while the below works like a champ. Similar issue? dom-repeat templates don't work with iron-selector? Deadlines will force me to jerry-rig around this issue.
|
As a workaround I have been using IronSelectableBehavior directly and overriding its get items() method. I use jQuery, but it might also be doable with Polymer's dom helpers.
|
First, I would like to apologize on behalf of the team for the un-announced regression of functionality from Second, we are interested in supporting this use case again. Since there are performance costs associated with the old behavior, we are probably going to add it back in as a boolean attribute that you can apply to any Please leave any further feedback on this in this issue! |
The current implementation uses In this example, only <!-- template for <nested-selector> -->
<iron-selector selectable=".item">
<example-1 class="item" />
<div>
<example-2 class="item" />
</div>
<content select=".content-1"></content>
<div>
<content select=".content-2"></content>
</div>
<content select=".content-3"></content>
<div>
<content select=".content-4"></content>
</div>
</iron-selector>
<!-- somewhere else -->
<nested-selector>
<example-3 class="content-1 item" />
<example-4 class="content-2 item" />
<div class="content-3">
<example-5 class="item" />
</div>
<div class="content-4">
<example-6 class="item" />
</div>
</nested-selector> |
Not sure about the above scenario as my use cases are mostly straightforward with items being rendered by a dom-repeat template and need to be selectable. I do have a question about queryDistributedElements and a "content element" - what if there's is none? In an element with a dom-repeat template and Polymer.IronSelectableBehavior like the one below queryDistributedElements returns and empty array and paper-items are not selectable:
If wrapped in |
in version 1.0.8 iron-selector still does not handle the scenario first described by @bendavis78 I'm facing a similar issue with the following structure, iron-selector holding a dom-repeat, Inside another dom-repeat that holds the actual selectable items...
Into
Solved it, please note that extending the behavior did not worked for me, had to directly edit the element, which is not ideal, since when its updated, changes are replaced... it would be great to implement the solution into the component though, thanks |
Extending actually works fine (v1.0.8).
|
It is still not decided if |
In the Shadow DOM spec, there's a section about |
Any news on this? I would like to use iron selector like:
|
Any updates to this? I need it for divs |
I have nested loops that generate the items for my selector, so my markup looks like this (simplified for brevity):
This type of setup worked fine with
core-selector
in 0.5, but doesn't work in 1.0.The text was updated successfully, but these errors were encountered: