Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hedcet opened this issue Mar 7, 2016 · 11 comments
Open

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

hedcet opened this issue Mar 7, 2016 · 11 comments

Comments

@hedcet
Copy link

hedcet commented Mar 7, 2016

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 hedcet changed the title iron-selector lose its selection when updating iron-selector lose its selection when data updating Mar 7, 2016
@hedcet hedcet changed the title iron-selector lose its selection when data updating iron-selector failed to update its selection when data updating Mar 7, 2016
@ebidel
Copy link
Owner

ebidel commented Mar 7, 2016

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

@hedcet
Copy link
Author

hedcet commented Mar 8, 2016

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

@ebidel
Copy link
Owner

ebidel commented Mar 8, 2016

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

How are you doing that?

@hedcet
Copy link
Author

hedcet commented Mar 9, 2016

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
Copy link
Author

hedcet commented Mar 9, 2016

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

@ebidel
Copy link
Owner

ebidel commented Mar 9, 2016

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

@hedcet
Copy link
Author

hedcet commented Mar 10, 2016

@ebidel PolymerElements/iron-selector#82 this was filed in NOV

@hedcet
Copy link
Author

hedcet commented Mar 14, 2016

@ebidel any updates ?

@hedcet hedcet closed this as completed Mar 14, 2016
@hedcet hedcet reopened this Mar 14, 2016
@ebidel
Copy link
Owner

ebidel commented Mar 14, 2016

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

@tontowi22
Copy link

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

screenshot from 2016-04-07 17 10 32

@ebidel
Copy link
Owner

ebidel commented Apr 7, 2016

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
#12 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants