Skip to content

Commit 513d1bc

Browse files
author
Joe Halvey
committed
PeoplePicker validation bugfix
Clear error message when onGetErrorMessage() returns empty string
1 parent 49998e6 commit 513d1bc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/controls/peoplepicker/PeoplePickerComponent.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ export class PeoplePicker extends React.Component<IPeoplePickerProps, IPeoplePic
185185

186186
if (!result) {
187187
this.validated(items);
188+
189+
this.setState({
190+
errorMessage: undefined
191+
});
188192
return;
189193
}
190194

0 commit comments

Comments
 (0)