Skip to content

Commit

Permalink
fix: concurrent modification during iteration (#491)
Browse files Browse the repository at this point in the history
Co-authored-by: TIANCHENG <[email protected]>
  • Loading branch information
yifei8 and andycall authored Oct 30, 2023
1 parent 866ff38 commit f5b1d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webf/lib/src/dom/element.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1581,11 +1581,11 @@ abstract class Element extends ContainerNode with ElementBase, ElementEventMixin
inlineStyle.forEach((String property, _) {
_removeInlineStyleProperty(property);
});
inlineStyle.clear();
style.flushPendingProperties();
}

void _removeInlineStyleProperty(String property) {
inlineStyle.remove(property);
style.removeProperty(property, true);
}

Expand Down

0 comments on commit f5b1d03

Please sign in to comment.