-
Notifications
You must be signed in to change notification settings - Fork 55
iron-selector doesn't select in nested templates #47
Comments
In iron-selectable the get items() function queries only the distributed nodes. This would normally take care of it. However, templates embedded within another templates hide it's distributed nodes within the surrounding template. I understand using getDistributedNodes when no selectable attribute is specified. But why not just use querySelectorAll when a selectable attribute is specified? |
… querySelectorAll to find selectable nodes.
@fooloomanzii Updated with my fix here: http://jsbin.com/pimazupare/edit?html,console,output |
Looks great! Thanks |
Firefox seems to have a problem with the solution on only one test. What is weird, is I can make the test succeed by setting the selected item in the test itself. (as long as the item is different than the default selected item) This test succeeds in Chrome. I cannot test Safari, the driver won't work. |
… querySelectorAll to find selectable nodes.
Closing as a duplicate of #42. Currently iron-selector only looks at immediate children. |
I have a somehow similar issue exposed with this code:
Selection works well, the array selectedTimes is changing as expected. But pre-setting selectedTimes does not mark any item as selected, strangely. |
as an example:
but it doesn't select and I can't figure out why
Code: http://jsbin.com/zuqato/edit?html,console,output
The text was updated successfully, but these errors were encountered: