Skip to content

iron-selector failed to update its selection when data updating #12

Open

Description

@hedcet

iron-selector failed to update its selection when receive new mail https://github.com/ebidel/polymer-gmail/blob/master/index.html#L152

i have the same issue in another open source repo https://github.com/HedCET/TorrentAlert/blob/master/.polymer/linto/project-list.html#L153

@ebidel could u possible to suggest any solution ?

Activity

  1. changed the title [-]iron-selector lose its selection when updating[/-] [+]iron-selector lose its selection when data updating[/+] on Mar 7, 2016
  2. changed the title [-]iron-selector lose its selection when data updating[/-] [+]iron-selector failed to update its selection when data updating[/+] on Mar 7, 2016
  3. ebidel commented on Mar 7, 2016

    @ebidel
    Owner

    Can you give me more details? What do see? What do you expect to happen. A screenshot would also be helpful.

  4. hedcet commented on Mar 8, 2016

    @hedcet
    Author

    selected property of iron-seletor is propagated in to mail-thread element to show selectable-icon in it as check

    to recreate this issue - first select an mail-thread then the iron-selector selected-items="{{selectedThreads}}" contain an array of mail-thread, after that just add an new item at top of this array items="[[threads]]" then the iron-selector not update its selection to 1 mail-thread down

  5. ebidel commented on Mar 8, 2016

    @ebidel
    Owner

    after that just add an new item at top of this array

    How are you doing that?

  6. hedcet commented on Mar 9, 2016

    @hedcet
    Author

    this is the same situation when new mail come at the time selection is enabled

    document.querySelector('#t');
    <template id=​"t" is=​"dom-bind">​…​</template>​
    var template = document.querySelector('#t');
    undefined
    template.unshift("threads", document.querySelector('#t').threads[0])
    101
    

    screen shot

  7. hedcet commented on Mar 9, 2016

    @hedcet
    Author

    @ebidel in my example i already specified the attribute-for-selection but still iron-selector failed to update its selection

  8. ebidel commented on Mar 9, 2016

    @ebidel
    Owner

    Yea, I see what you mean. The proper fix is probably upstream in iron-selector.

  9. hedcet commented on Mar 10, 2016

    @hedcet
    Author
  10. hedcet commented on Mar 14, 2016

    @hedcet
    Author

    @ebidel any updates ?

  11. reopened this on Mar 14, 2016
  12. ebidel commented on Mar 14, 2016

    @ebidel
    Owner

    Please ping the upstream bug. There's not much I can do until that's fixed.

  13. tontowi22 commented on Apr 7, 2016

    @tontowi22

    why when i swipe the items, the undo button not work properly? show warning not implemented

    screenshot from 2016-04-07 17 10 32

  14. ebidel commented on Apr 7, 2016

    @ebidel
    Owner

    The whole app is read only, meaning it doesn't actually change your Gmail
    data.

    On Thu, Apr 7, 2016, 3:42 PM tontowi22 notifications@github.com wrote:

    why when i swipe the items, the undo button not work properly? show
    warning not implemented

    [image: screenshot from 2016-04-07 17 10 32]
    https://cloud.githubusercontent.com/assets/16931133/14347962/dd2bc15e-fce3-11e5-9cb3-2c0d572ba2a7.png

    —
    You are receiving this because you were mentioned.
    Reply to this email directly or view it on GitHub
    #12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions