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

dom-repeat does not always notify paths of properties listed in "observe" #4650

Closed
1 of 6 tasks
digint opened this issue May 31, 2017 · 0 comments
Closed
1 of 6 tasks

Comments

@digint
Copy link

digint commented May 31, 2017

Description

In dom-repeat, all properties listed in the "observe" property are not always correctly notified in the template content, and no property effects are generated.

Live Demo

http://jsbin.com/kucotolebo/edit?html,output

Steps to Reproduce

Example:

<template is="dom-repeat" items="[[myArrayOfObjects]]" observe="myProp">
  <my-element data="[[item]]"></my-element>
</template>
  1. create element my-element which displays data.myProp
  2. this.set('myArrayOfObjects.0.myProp', 'somevalue')

Expected Results

As this is not documented in the dom-repeat API, I expect all properties to be always notified (not only if the observed property triggers re-sort and/or re-filter)

Actual Results

If myProp sees an observable change, data.myProp in my-element is not notified and does not generate property effects.

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 9
  • Safari 8
  • IE 11

(probably all browsers affected)

Versions

  • Polymer: v2.0.1
sorvell pushed a commit that referenced this issue Jun 8, 2017
…t in addition, the path should be notified. This is necessary since “mutableData” is optional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants