-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes custom error rendering in TextField (#16487)
#### Pull request checklist - [x] Addresses an existing issue: Fixes #16049 - [x] Include a change request file using `$ yarn change` #### Description of changes TextField renders all the error messages under a p tag with custom styles, that's fine as long as the error message is string. When there is a custom error message (i.e., JSX.Element) rendering it under the p tag violates DOM validation (e.g, div can't be child of p). This PR addresses this issue.
- Loading branch information
Showing
3 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
change/@fluentui-react-internal-2021-01-14-16-34-06-sorgh-iss16049.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"type": "prerelease", | ||
"comment": "Fixes TextField custom error message rendering", | ||
"packageName": "@fluentui/react-internal", | ||
"email": "[email protected]", | ||
"dependentChangeType": "patch", | ||
"date": "2021-01-15T00:34:06.681Z" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters