Skip to content

[EuiSuperSelect] Migrate from class to function component #9485

Closed

Description

@weronikaolejniczak

EuiSuperSelect is a select input that supports custom option rendering with rich content (descriptions, icons). Used as a form control.

  • File: components/form/super_select/super_select.tsx
  • Class size: 267 lines
  • State: isPopoverOpen
  • Lifecycle: componentDidMount, componentWillUnmount

Migration notes:

Despite its size, state is simple (single boolean). Lifecycle manages focus and keyboard listeners. The complexity is in the popover coordination and keyboard navigation.

Acceptance criteria:

  • Convert to function component with hooks
  • Maintain popover and keyboard navigation
  • All existing tests pass

Activity

  1. added
    help wanted
    low hanging fruit
    on Aug 10, 2026
  2. github-actions commented on Aug 10, 2026

    @github-actions

    👋 Thank you for your suggestion or request! While the EUI team agrees that it's valid, it's unlikely that we will prioritize this issue on our roadmap. We'll leave the issue open if you or anyone else in the community wants to implement it by contributing to EUI. If not, this issue will auto close in one year.

  3. mehuljariwala commented on Aug 31, 2026

    @mehuljariwala
    Contributor

    I’d like to work on this. I’ll keep the public API unchanged, migrate the lifecycle/listener logic to hooks, preserve focus/popover and keyboard-navigation behavior, and run the focused unit tests plus lint/type checks. I’ll share the validation details in the PR.

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

    help wantedlow hanging fruit

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions