Skip to content

CssState.apply shouldn't reset all CSS properties before applying the current state #4715

@madakk

Description

@madakk

resetCSSProperties(this.view.style);

Looks like when a new CSS state is applied, all CSS properties are reset and then set back again. This causes all of their change handlers to execute twice (once for the reset, and once again for the value being applied), which can have further implications (mainly on performance, as it can lead to the inner implementation being rerendered) even if the value isn't actually being changed at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions