Skip to content

[SELECT] Open select by default #229

Closed

Description

@kant2002

I notice that Uber UI has interesting property on the SELECT component - startOpen which displays dropdown in opened state. Again, this seems to be fringe, but at least should be considered/discussed.

Referece: https://baseweb.design/components/select/

Activity

  1. added
    agenda+
    on Nov 30, 2020
  2. una commented on Dec 2, 2020

    @una
    Collaborator

    This is an interesting point, that would also affect the popup conversation. I could see a usecase for a base open state. Added this to this week's agenda for discussion

  3. dandclark commented on Dec 4, 2020

    @dandclark
    Collaborator

    This was discussed during today's Telecon: https://www.w3.org/2020/12/03-openui-minutes.html#resolution01.
    There was agreement that this is a capability worth supporting. However rather than introducing an additional property, we resolved that the existing open state should be exposed as a JS property and reflected HTML content attribute. In addition to toggling the <select> open/closed programmatically, these can be used to achieve the startOpen behavior by e.g. writing the initial HTML like this:

    <select open>
      <option>Thing 1</option>
      <option>Thing 2</option>
    </select>

    See: #236

  4. removed
    agenda+
    on Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions