Skip to content

Commit

Permalink
fix: Datepicker renders input description if inputProps.onRenderDescr…
Browse files Browse the repository at this point in the history
…iption is set (microsoft#27784)
  • Loading branch information
smhigley authored Jul 24, 2023
1 parent 99e835a commit 1a8fcde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix: Datepicker renders input description if onRenderDescription is passed in",
"packageName": "@fluentui/react",
"email": "sarah.higley@microsoft.com",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ export const DatePickerBase: React.FunctionComponent<IDatePickerProps> = React.f
const renderTextfieldDescription = (inputProps: ITextFieldProps, defaultRender: IRenderFunction<ITextFieldProps>) => {
return (
<>
{inputProps.description ? defaultRender(inputProps) : null}
{inputProps.description || inputProps.onRenderDescription ? defaultRender(inputProps) : null}
<div aria-live="assertive" className={classNames.statusMessage}>
{statusMessage}
</div>
Expand Down

0 comments on commit 1a8fcde

Please sign in to comment.