streamlit-shadcn-ui icon indicating copy to clipboard operation
streamlit-shadcn-ui copied to clipboard

Add outside event hook for select

Open ObservedObserver opened this issue 7 months ago • 0 comments

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)

ObservedObserver avatar May 17 '25 01:05 ObservedObserver