openui / openui/open-ui

[select] listbox toggle/beforetoggle

Open
#1,228 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-triage popover select
Dominant language
MDX
Stars
4.5k
Forks
226
Avg merge
2d 22h
Merged PRs (30d)
4

Description

hey y'all 🤙

it's been a minute since dippin' in and playing around with select, etc.

in earlier versions, we were able to define the listbox element with slot and behavior. is this no longer the case?

how would you listen for when the select is open/closed? in earlier iterations, you could listen to beforetoggle/toggle on the listbox popover

forgive me if this is documented somewhere but couldn't find examples of doing this or docs about it

– jhey ʕ •ᴥ•ʔ

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the current select/listbox specification and documentation for slot, behavior, and beforetoggle/toggle. Determine whether the earlier listbox hooks still exist and document how authors can detect when select opens or closes, including examples if the behavior is supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
frontend, web-dev
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.