All Versions
I don't understand but if I create an SPFX project which is used only for SharePoint 2019 the onChnage event is missing and there is only some event called selectedItems . The problem is I do not have any documentation. I do not know what version of PNP React Controls is used for SharePoint 2019. Hmm...Is somewhere documentation for that or some information why is this so?
OnChange event is missing.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Since you're on on-prem I'm assuming you're using v. 1.x
From the migration guide for the 2.x release:
selectedItems is renamed to onChange
https://pnp.github.io/sp-dev-fx-controls-react/guides/migrate-from-v1/#peoplepicker
Thank you for this link. Right now I understand this. Thank you.
PS: Only there is a small problem that disabled functionality starts to work from version 2.0 which can not be used on on-premises:(
Hi @enti333.
Thank you for the question.
As @Tanddant mentioned, the property has been renamed. So, the documentation shows renamed property.
We probably need to do a better job and include docs for v1.
Regarding disabled. Unfortunately, this one will not appear for v1 and on-prem. The issue was related to the internal bug in Office UI Fabric.
It has been fixed in v6 of OUIFR. But SharePoint on-prem supports SPFx v1.4 and, as a result, OUIFR v5.
So, we can't update controls lib for on premise to use v6 of OUIFR.