Skip to content

Add outside event hook for select#45

Draft
ObservedObserver wants to merge 1 commit intomainfrom
codex/create-useoutsideevent-hook-and-integrate-with-stselectoptio
Draft

Add outside event hook for select#45
ObservedObserver wants to merge 1 commit intomainfrom
codex/create-useoutsideevent-hook-and-integrate-with-stselectoptio

Conversation

@ObservedObserver
Copy link
Owner

Summary

  • add a new React hook useOutsideEvent that registers listeners on document and window.parent.document
  • use the hook in StSelectOptions to close the dropdown when clicking outside

Testing

  • npm run lint (fails: ESLint couldn't find config)
  • npm run build (fails: missing dependencies)
  • pytest -q (fails: command not found)

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant