Skip to content

Commit

Permalink
SWC-7131 - workaround - do not render components that are not visible
Browse files Browse the repository at this point in the history
  • Loading branch information
nickgros committed Nov 19, 2024
1 parent dba301b commit 3ca6300
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,8 @@ public HandlerRegistration addClickHandler(ClickHandler handler) {

return childWidgets
.stream()
// SWC-7131: Visibility via style: {display: "none"} may not work in production
.filter(ReactComponentV2::isVisible)
.map(ReactComponentV2::createReactElement)
.toArray(ReactElement<?, ?>[]::new);
} else {
Expand Down

0 comments on commit 3ca6300

Please sign in to comment.