vaadin / observability-kit

Other
5 stars 3 forks source link

Disregard property changed events for initial values #53

Open sissbruecker opened 2 years ago

sissbruecker commented 2 years ago

Lots of Vaadin components dispatch property change events even for initial values. That is due to how Polymer works, which triggers property changed events even if the property has not been set before. This has the effect that showing a large form in its initial state will already add a lot of event spans, even if the user did not interact with the form yet.

We should look into whether we can skip creating these event spans if they refer to setting the initial property value. That might be possible by comparing the value of the event with the value of Element.getProperty.

This should cover at least value-changed events, but we can also try to cover other events like opened-changed.