Skip to content

Commit 9a9d77c

Browse files
authored
Merge pull request #430 from giovanibm/fix-required-validation
Fix test to show the error message
2 parents f742183 + 0470cb7 commit 9a9d77c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controls/peoplepicker/PeoplePickerComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
225225
}
226226

227227
{
228-
(this.props.isRequired && this.state.showRequiredError) || (this.state.errorMessage) && (
228+
((this.props.isRequired && this.state.showRequiredError) || (this.state.errorMessage)) && (
229229
<p className={`ms-TextField-errorMessage ${styles.errorMessage} ${this.props.errorMessageClassName ? this.props.errorMessageClassName : ''}`}>
230230
<Icon iconName='Error' className={styles.errorIcon} />
231231
{

0 commit comments

Comments
 (0)