[EuiSuperSelect] Placeholder support for EuiSuperSelect / EuiSuperSelectControl #6189
Labels
feature request
help wanted
The EUI team is looking for community members to pick up and implement this issue
Summary
Currently, there is no way to define a placeholder for the
EuiSuperSelect
component. If you pass in a placeholder value it gets placed in therest
param. Then, the value ofrest
is spread onto theEuiSuperSelectControl
.Fix
Add a named prop to
EuiSuperSelect
for the placeholder. If there is no selected value on the component and a placeholder is provided put the placeholder text inside the button with the subdued text color.Replace lines 156-166 of super_select_control.tsx
The text was updated successfully, but these errors were encountered: