Skip to content

[EuiFilterSelectItem] Migrate from class to function component #9489

@weronikaolejniczak

Description

@weronikaolejniczak

EuiFilterSelectItem renders individual selectable items within EuiFilterGroup. Used in dashboard filter controls.

  • File: components/filter_group/filter_select_item.tsx
  • Class size: 152 lines
  • State: hasFocus
  • Lifecycle: componentDidUpdate

Migration notes:

Focus management in componentDidUpdate maps to useEffect. Wrapped with withEuiTheme — can switch to useEuiTheme.

Acceptance criteria:

  • Convert to function component with hooks
  • Replace withEuiTheme with useEuiTheme
  • Maintain focus behavior
  • All existing tests pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions