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

Fix hidden styles being reset to visible #2996

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

geomaster
Copy link
Contributor

In searchShapes(), if we found a matching element for a style in this.processedElements(), we would reset its closed property to false always, even if the element is hidden. Instead, set it to the value of the hd property to ensure that hidden styles are not re-rendered when an update occurs (e.g. via reloadShapes(), see #2983).

In `searcShapes()`, if we found a matching element for a style in
`this.processedElements()`, we would reset its `closed` property to
`false` always, even if the element is hidden. Instead, set it to the
value of the `hd` property to ensure that hidden styles are not
re-rendered.
@geomaster geomaster closed this Nov 7, 2023
@geomaster geomaster reopened this Nov 7, 2023
@AliT3 AliT3 merged commit b32aa83 into airbnb:master Mar 19, 2024
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants