Skip to content

Commit

Permalink
fix: fix header and footer getting lost when using preserve on refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
paodb authored and mlopezFC committed Feb 15, 2024
1 parent 42d0263 commit a9367f6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion popup/src/main/java/com/vaadin/componentfactory/Popup.java
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,13 @@ protected void onAttach(AttachEvent attachEvent) {
if (id == null && this.target == null) {
getElement().callJsFunction("disconnectedCallback");
} else {
getElement().callJsFunction("connectedCallback");
getElement().callJsFunction("connectedCallback");
if(this.getHeader().isRendererCreated()) {
this.getHeader().initRenderer();
}
if(this.getFooter().isRendererCreated()) {
this.getFooter().initRenderer();
}
}
}
}
Expand Down

0 comments on commit a9367f6

Please sign in to comment.