Skip to content

fix: preserve cloak state during Livewire updates - #20743

Merged
danharrin merged 2 commits into
4.xfrom
fix/preserve-cloak-state-during-livewire-updates
Oct 14, 2026
Merged

danharrin merged 2 commits into
4.xfrom
fix/preserve-cloak-state-during-livewire-updates

Conversation

@danharrin

Copy link
Copy Markdown
Member

Description

Prevent Livewire updates from restoring x-cloak on already-initialized elements, avoiding scroll resets in Wizards, Sections, and other cloaked containers. Preserve cloaks on elements still waiting for initialization.

This compatibility fix can be removed once the minimum supported Livewire version includes alpinejs/alpine#4922.

Fixes #20742.

@danharrin danharrin added this to the v4 milestone Oct 14, 2026
@danharrin danharrin added the bug Something isn't working label Oct 14, 2026
@danharrin
danharrin merged commit 20c43eb into 4.x Oct 14, 2026
53 of 67 checks passed
@danharrin
danharrin deleted the fix/preserve-cloak-state-during-livewire-updates branch October 14, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wizard page scrolls to the top after every Livewire update when the active step contains a dropdown (regression in v5.10.1)

1 participant