Skip to content

Conversation

@kmcfaul
Copy link
Contributor

@kmcfaul kmcfaul commented Aug 17, 2023

What: Closes #9306

Props are supported but were not explicitly in the props table unlike other similar text components.

@patternfly-build
Copy link
Contributor

patternfly-build commented Aug 17, 2023

Copy link
Contributor

@jenny-s51 jenny-s51 left a 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;
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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.

Copy link
Contributor

@jenny-s51 jenny-s51 left a 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?

@tlabaj tlabaj merged commit 3828124 into patternfly:main Aug 25, 2023
nicolethoen pushed a commit to Kells512/patternfly-react that referenced this pull request Sep 1, 2023
* docs(TextArea): add onFocus/onBlur props to table

* update event typing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug - TextArea - onBlur and onFocus is not documented

4 participants