elastic / elastic/eui

[EuiComboBoxInput] Migrate from class to function component

Open
#9,478 1 comment 0 reactions 0 assignees View on GitHub
help wanted low hanging fruit
Dominant language
TypeScript
Stars
6.4k
Forks
911
Avg merge
2d 11h
Merged PRs (30d)
65

Description

`EuiComboBoxInput` renders the input field, selected option pills, and handles text input within `EuiComboBox`. Internal sub-component.

- **File:** `components/combo_box/combo_box_input/combo_box_input.tsx`
- **Class size:** 333 lines
- **State:** `inputWidth`, `hasFocus`
- **Lifecycle:** `componentDidUpdate`

**Migration notes:**

Tightly coupled to `EuiComboBox`. Should be migrated together. The `componentDidUpdate` manages focus and input width — maps to `useEffect`.

**Acceptance criteria:**

- [ ] Convert to function component with hooks
- [ ] Migrate as part of the ComboBox family
- [ ] All existing tests pass

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.