Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control causes constant re-render when other input fields are added #1

Open
Senadtm87 opened this issue Oct 9, 2020 · 0 comments
Open

Comments

@Senadtm87
Copy link

Senadtm87 commented Oct 9, 2020

https://github.com/juanjoarranz/spfx-react-async-dropdown-property-pane-control/blob/master/src/controls/PropertyPaneAsyncDropdown/PropertyPaneAsyncDropdown.ts line 52
causes re-render on every input when you have multiple elements(property panes) even when you do not change value of this control, I created additional property and saved option.text when it changes and switched it instead of new Date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant