Is it possible to clear the input text (e.g. "qweqweqweqwe" in the example below) of the (Fluent/Fabric) NormalPeoplePicker programmatically?
I have tried accessing the input element (via the onBlur event) and attempted to change it's value and innerHtml but that doesn't work. Also, that doesn't seem to be a good way of doing it.
https://developer.microsoft.com/en-us/fluentui#/controls/web/peoplepicker
NormalPeoplePicker Component
keep input value insidestate
and its not possible to change it directly:From Official Documentation inside implementation section there is useful method
updateValue
which allows to change the input value.Codepen working example
ln: 104
.Note:
This is a temporary solution, test every use case before production.