Polymer / polymer

Our original Web Component library.
https://polymer-library.polymer-project.org/
BSD 3-Clause "New" or "Revised" License
22.04k stars 2.01k forks source link

property-changed not sent from data binding #5669

Open mkropf opened 4 years ago

mkropf commented 4 years ago

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

Versions

mkropf commented 4 years ago

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

stale[bot] commented 3 years ago

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.