-
Notifications
You must be signed in to change notification settings - Fork 375
docs(TextArea): add onFocus/onBlur props to table #9513
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
Conversation
|
Preview: https://patternfly-react-pr-9513.surge.sh A11y report: https://patternfly-react-pr-9513-a11y.surge.sh |
083d74a to
3a12189
Compare
jenny-s51
left a comment
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.
Just needs a small update to verbiage otherwise LGTM 👍
| /** A callback for when the text area value changes. */ | ||
| onChange?: (event: React.ChangeEvent<HTMLTextAreaElement>, value: string) => void; | ||
| /** Callback function when text area is focused */ | ||
| onFocus?: (event?: any) => void; |
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.
can we be more specific about event types here?
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.
Should I also update the typing of TextInput and FormSelect? Those have any typing as well.
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.
technically changing they type for TextInput and FormSelect would be breaking. So I would leave them.
c5b13df to
d8608cc
Compare
jenny-s51
left a comment
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.
LGTM 👍 Should we open a breaking-change issue to track adding the missing event types to TextInput and FormSelect?
* docs(TextArea): add onFocus/onBlur props to table * update event typing
What: Closes #9306
Props are supported but were not explicitly in the props table unlike other similar text components.