-
Notifications
You must be signed in to change notification settings - Fork 843
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds onFocus prop to EuiComboBox #1375
Conversation
src/components/combo_box/index.d.ts
Outdated
@@ -64,6 +64,7 @@ declare module '@elastic/eui' { | |||
options?: EuiComboBoxOptionsListProps['options'], | |||
selectedOptions?: EuiComboBoxOptionsListProps['selectedOptions'], | |||
onChange?: (options: Array<EuiComboBoxOptionProps>) => any, | |||
onFocus?: () => any, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels wrong, but I wasn't sure if we should include something like InputHTMLAttributes
to cover it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small change to handle the onFocus
type def, otherwise great!
Co-Authored-By: zumwalt <casey@zumwa.lt>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes LGTM
@zumwalt you also need to import |
Summary
This PR exposes
EuiComboBoxInput
'sonFocus
prop in theEuiComboBox
component.Checklist
[ ] This was checked in mobile[ ] This was checked in IE11[ ] This was checked in dark mode[ ] Documentation examples were added[ ] This required updates to Framer X components