polymer icon indicating copy to clipboard operation
polymer copied to clipboard

property-changed not sent from data binding

Open mkropf opened this issue 6 years ago • 2 comments

Description

a polymer element fires a -changed event when a property is declared with notify: true and is "observably changed". However, when the property is changed from a data binding, the event is not fired.

This is very surprising, it is not understandable why a property change should behave differently, depending on the way it gets invoked.

Live Demo

https://jsbin.com/fiqisay/edit?html,output

Steps to Reproduce

run the example in jsbin

Expected Results

both child properties should notify

Actual Results

the property updated by the binding doesn't

Browsers Affected

  • [x ] Chrome
  • [x ] Firefox
  • [? ] Edge
  • [? ] Safari 11
  • [? ] Safari 10
  • [? ] IE 11

Versions

  • Polymer: v3.4.1
  • webcomponents: vX.X.X

mkropf avatar Jul 14 '20 10:07 mkropf

should _setPendingProperty be called with 3d parameter true? https://github.com/Polymer/polymer/blob/8bd4b6eb481b377e794bef20e1c3fddf5f6dcf29/lib/mixins/property-effects.js#L820

mkropf avatar Jul 14 '20 10:07 mkropf

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 14 '21 17:07 stale[bot]