-
Notifications
You must be signed in to change notification settings - Fork 38
Multiselect values do not trigger updates #245
Comments
ping @lbustelo |
@deedubbu found this bug PolymerElements/iron-selector#103. The fact that the I've condensed the gist at https://gist.github.com/lbustelo/18740343028cb34a8753 |
Having said that... there might be a fix necessary on |
A workaround to get the function called on multi selection is to use the %%html
<template is="urth-core-bind">
<urth-core-function ref="test" args="{{theArgs}}" result="{{theResult}}" auto></urth-core-function>
<paper-menu attr-for-selected="label" multi selected-values="{{theArgs.items}}">
<paper-item label="1">Network 1</paper-item>
<paper-item label="2">Network 2</paper-item>
<paper-item label="3">Network 3</paper-item>
</paper-menu>
The function result <span>{{theResult}}</span><br/>
</template> As for using the other style of passing arguments... that is a real issue. Need to investigate how to support it. |
Another potential workaround is to wrap the 'urth-core-function %%html
<template is="urth-core-bind">
<urth-core-watch value="{{selections}}">
<urth-core-function ref="test" arg-items="{{selections}}" result="{{theResult}}"></urth-core-function>
</urth-core-watch>
<paper-menu attr-for-selected="label" multi selected-values="{{selections}}">
<paper-item label="1">Network 1</paper-item>
<paper-item label="2">Network 2</paper-item>
<paper-item label="3">Network 3</paper-item>
</paper-menu>
The function result <span>{{theResult}}</span><br/>
</template> |
fixed by #249 |
Grab example from https://gist.github.com/parente/d167f45547dce313529b and follow the instructions within it.
Tested against decl widgets 0.4.1.
The text was updated successfully, but these errors were encountered: