Skip to content

Fix invalid selector handling for DOM canvas windows#314

Merged
waynemwashuma merged 2 commits into
wimaengine:devfrom
waynemwashuma:fix-window-selector
May 12, 2026
Merged

Fix invalid selector handling for DOM canvas windows#314
waynemwashuma merged 2 commits into
wimaengine:devfrom
waynemwashuma:fix-window-selector

Conversation

@waynemwashuma
Copy link
Copy Markdown
Collaborator

@waynemwashuma waynemwashuma commented May 12, 2026

Objective

Fix invalid CSS selector handling in the DOM window hook.

Solution

The previous implementation allowed invalid selector matches to continue through initialization before replacing them with a new canvas. This changes that by ensuring the selected canvas is used instead of replaced by a new canvas on DOM windowing

This also validates selector results immediately.

Showcase

N/A

Migration guide

No migration required.

Checklist

  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@waynemwashuma waynemwashuma added the type:bug Something isn't working label May 12, 2026
@waynemwashuma waynemwashuma merged commit 4e88ef7 into wimaengine:dev May 12, 2026
7 checks passed
@waynemwashuma waynemwashuma deleted the fix-window-selector branch May 12, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:window type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant