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

feat(downshift): allow passing additional props to Downshift #2726

Merged
merged 3 commits into from
May 15, 2019
Merged

feat(downshift): allow passing additional props to Downshift #2726

merged 3 commits into from
May 15, 2019

Conversation

art0rz
Copy link
Contributor

@art0rz art0rz commented May 14, 2019

This change will allow users to pass additional props to Downshift. This is useful for when for example the app is running in a shadowRoot and the user needs to pass an environment object to Downshift (which is an issue I'm currently running into).

See downshift-js/downshift#536

Changelog

Changed

The following files have the same changes applied to them:

  • Combobox.js
  • Dropdown.js
  • FilterableMultiselect.js
  • Multiselect

Added optional prop downshiftProps which is merged with component's own Downshift props (component's props take precedence) and passed to Downshift.

@netlify
Copy link

netlify bot commented May 14, 2019

Deploy preview for the-carbon-components ready!

Built with commit 4671da2

https://deploy-preview-2726--the-carbon-components.netlify.com

@netlify
Copy link

netlify bot commented May 14, 2019

Deploy preview for carbon-components-react failed.

Built with commit 4671da2

https://app.netlify.com/sites/carbon-components-react/deploys/5cdc1a5660faaa000abd3b16

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @art0rz!

Copy link
Member

@emyarod emyarod left a comment

Choose a reason for hiding this comment

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

looks good to me!

@emyarod emyarod merged commit a5601a7 into carbon-design-system:master May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants