Skip to content

fix(extended-text-entry): re-render elements on reconnect PIE-672#3050

Merged
CarlaCostea merged 1 commit into
developfrom
fix/PIE-672-ete
Jun 18, 2026
Merged

fix(extended-text-entry): re-render elements on reconnect PIE-672#3050
CarlaCostea merged 1 commit into
developfrom
fix/PIE-672-ete

Conversation

@CarlaCostea

Copy link
Copy Markdown
Contributor

The configure element had no connectedCallback while its disconnectedCallback unmounts the React root and sets _root = null. When a host (e.g. Vue keep-alive) detached and re-attached the same element instance without re-assigning model/configuration, nothing re-rendered and the settings panel stayed blank until render() was called manually. Add connectedCallback that calls render() (matching the categorize/select-text configure elements) so it re-renders on reconnect; render() already guards on _model and recreates _root when null, so this is safe and idempotent.

Also null _root in the player element's disconnectedCallback so that a reconnect render() recreates the root instead of calling render() on an already-unmounted root.

https://illuminate.atlassian.net/browse/PIE-672

The configure element had no connectedCallback while its disconnectedCallback
unmounts the React root and sets _root = null. When a host (e.g. Vue
keep-alive) detached and re-attached the same element instance without
re-assigning model/configuration, nothing re-rendered and the settings panel
stayed blank until render() was called manually. Add connectedCallback that
calls render() (matching the categorize/select-text configure elements) so it
re-renders on reconnect; render() already guards on _model and recreates _root
when null, so this is safe and idempotent.

Also null _root in the player element's disconnectedCallback so that a reconnect
render() recreates the root instead of calling render() on an already-unmounted
root.

Co-authored-by: Cursor <cursoragent@cursor.com>
@CarlaCostea CarlaCostea merged commit 59d45d7 into develop Jun 18, 2026
3 checks passed
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.

1 participant