PolymerElements / iron-selector

Manages a list of elements that can be selected
32 stars 55 forks source link

Fixed notification of selectionValue array items #61

Closed bendavis78 closed 8 years ago

bendavis78 commented 8 years ago

The following use-case was not working, as notifications were not being sent for selectedValues items

      <div>
        <h4>Multi-select</h4>
        <div class="horizontal-section">
          <paper-menu id="menu" multi selected-values="{{selected}}">
            <paper-item>Bold</paper-item>
            <paper-item>Italic</paper-item>
            <paper-item>Underline</paper-item>
            <paper-item>Strikethrough</paper-item>
          </paper-menu>
        </div>
      </div>
      <div>
        <h4>Selected items:</h4>
        <div class="horizontal-section">
          <ul>
            <template is="dom-repeat" items="{{selected}}">
              <li>{{item}}</li>
            </template>
          </ul>
        </div>
      </div>
bicknellr commented 8 years ago

Fixed by #68.