polymer-gmail icon indicating copy to clipboard operation
polymer-gmail copied to clipboard

iron-selector failed to update its selection when data updating

Open hedcet opened this issue 8 years ago • 11 comments

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 ?

hedcet avatar Mar 07 '16 14:03 hedcet

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

ebidel avatar Mar 07 '16 19:03 ebidel

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

hedcet avatar Mar 08 '16 14:03 hedcet

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

How are you doing that?

ebidel avatar Mar 08 '16 21:03 ebidel

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

hedcet avatar Mar 09 '16 08:03 hedcet

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

hedcet avatar Mar 09 '16 08:03 hedcet

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

ebidel avatar Mar 09 '16 18:03 ebidel

@ebidel https://github.com/PolymerElements/iron-selector/issues/82 this was filed in NOV

hedcet avatar Mar 10 '16 03:03 hedcet

@ebidel any updates ?

hedcet avatar Mar 14 '16 19:03 hedcet

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

ebidel avatar Mar 14 '16 19:03 ebidel

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

screenshot from 2016-04-07 17 10 32

tontowi22 avatar Apr 07 '16 10:04 tontowi22

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

On Thu, Apr 7, 2016, 3:42 PM tontowi22 [email protected] 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 https://github.com/ebidel/polymer-gmail/issues/12#issuecomment-206797722

ebidel avatar Apr 07 '16 10:04 ebidel