Skip to content

fix(react): keep active state while focused - #1808

Merged
mihar-22 merged 1 commit into
mainfrom
fix/1782-use-active-focus
May 25, 2026
Merged

fix(react): keep active state while focused#1808
mihar-22 merged 1 commit into
mainfrom
fix/1782-use-active-focus

Conversation

@mihar-22

Copy link
Copy Markdown
Member

Summary

  • Keep useActive active when mouse leave fires while focus remains inside the element.
  • Apply the same focus-aware active-state logic to the core web-component DOM utility.

Fixes #1782

Validation

  • pnpm --filter @vidstack/react typecheck passed
  • pnpm --filter vidstack typecheck passed

@mihar-22 mihar-22 changed the title fix: keep active state while focused fix(react): keep active state while focused May 25, 2026
@mihar-22
mihar-22 marked this pull request as ready for review May 25, 2026 04:55
@mihar-22
mihar-22 merged commit 2026f24 into main May 25, 2026
1 check passed
@mihar-22
mihar-22 deleted the fix/1782-use-active-focus branch May 25, 2026 04:58
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.

Bug: useActive hook incorrectly returns false when element is focused

1 participant