[WV2] Fix bug with play/pause visibility
This commit is contained in:
parent
b462272dc3
commit
6f7b307e39
1 changed files with 7 additions and 0 deletions
|
|
@ -396,6 +396,13 @@ class OutfitViewerPlayPauseToggle extends HTMLElement {
|
|||
"outfit-layer:state(has-animations)",
|
||||
) !== null,
|
||||
);
|
||||
|
||||
// After a Turbo morph, Idiomorph may remove our `hidden` attribute
|
||||
// (since the server HTML never includes it). Re-apply visibility
|
||||
// based on the current animation state.
|
||||
document.addEventListener("turbo:render", () => {
|
||||
this.#syncFromOutfitViewer();
|
||||
});
|
||||
}
|
||||
|
||||
#syncFromOutfitViewer() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue