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

fix multi-select-menu initial-options #37

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

fix multi-select-menu initial-options #37

wants to merge 4 commits into from

Conversation

dutzi
Copy link

@dutzi dutzi commented Dec 28, 2020

This PR addresses #36

@@ -1305,9 +1305,12 @@ export const MultiSelectMenu = (props: MultiSelectMenuProps) => (
const [{ fields: optionsOrGroups }, optionPromises] = reconcile(
React.createElement(Section, { children: props.children })
);
const [{ fields: initialOptions }, initialOptionsPromises] = reconcile(
const [, initialOptionsPromises] = reconcile(
Copy link
Author

@dutzi dutzi Dec 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason, I had to keep calling reconcile on React.createElement(Section, ..., otherwise initial options wouldn't render

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

Successfully merging this pull request may close these issues.

1 participant