Skip to content

[EuiFieldSearch] Migrate from class to function component #9498

@weronikaolejniczak

Description

@weronikaolejniczak

EuiFieldSearch is a search input with incremental search support, clear button, and controlled/uncontrolled modes.

  • File: components/form/field_search/field_search.tsx
  • Class size: 220 lines
  • State: value
  • Lifecycle: componentDidMount, componentWillUnmount

Migration notes:

Lifecycle manages the native search event listener on the input element. Maps to useEffect. Wrapped with withEuiStylesMemoizer.

Acceptance criteria:

  • Convert to function component with hooks
  • Maintain incremental search 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