Skip to content

Multivalue with live() fix#219

Open
oleanti wants to merge 1 commit into
CodeWithDennis:4.xfrom
oleanti:4.x
Open

Multivalue with live() fix#219
oleanti wants to merge 1 commit into
CodeWithDennis:4.xfrom
oleanti:4.x

Conversation

@oleanti

@oleanti oleanti commented Jun 24, 2026

Copy link
Copy Markdown

Avoid closing the select on each selection due to livewire renders.

Derive a stable, per-field wire:key from the state path. Using rand() produced a new key on every render, so a ->live() round-trip swapped the whole field node (defeating wire:ignore) and reset the tree.

#119

… produced a new key on every render, so a ->live() round-trip swapped the whole field node (defeating wire:ignore) and reset the tree
@gp-lnuff

Copy link
Copy Markdown
Contributor

Have these changes been tested in SPA mode?
I know setting a custom key on the SelectTree used to break reactivity (in particular, conditional multiple()) in SPA mode.

@CodeWithDennis

Copy link
Copy Markdown
Owner

Good question @gp-lnuff

Can you confirm? @oleanti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants