polymer-gmail
polymer-gmail copied to clipboard
iron-selector failed to update its selection when data updating
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 ?
Can you give me more details? What do see? What do you expect to happen. A screenshot would also be helpful.
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
after that just add an new item at top of this array
How are you doing that?
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
@ebidel in my example i already specified the attribute-for-selection but still iron-selector failed to update its selection
Yea, I see what you mean. The proper fix is probably upstream in iron-selector.
@ebidel https://github.com/PolymerElements/iron-selector/issues/82 this was filed in NOV
@ebidel any updates ?
Please ping the upstream bug. There's not much I can do until that's fixed.
why when i swipe the items, the undo button not work properly? show warning not implemented
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