-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(dropdowns): pass user ID's to Downshift #6326
fix(dropdowns): pass user ID's to Downshift #6326
Conversation
Deploy preview for carbon-elements ready! Built with commit 768d8d4 |
Deploy preview for carbon-components-react ready! Built with commit e933632 https://deploy-preview-6326--carbon-components-react.netlify.app |
Deploy preview for carbon-components-react ready! Built with commit 768d8d4 https://deploy-preview-6326--carbon-components-react.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Combobox looking great, a small change with Dropdown and Multiselect
I think snapshots just need to be updated so they don’t have [Object object] |
packages/react/src/components/MultiSelect/__tests__/MultiSelect-test.js
Outdated
Show resolved
Hide resolved
Doing some quick digging (this is definitely grounds for some clean-up in the future) The version we're trying to get to matches:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@emyarod for dropdown it should show up on that node, if I understand correctly |
@emyarod @joshblack yeah, I believe the node should be where it ends up yeah |
There was a problem hiding this 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, I couldn't replicate the issue in the screenshot earlier consistently but it might have just been a storybook problem since the snapshots look fixed now
* origin/master: (77 commits) feat(pictograms): add systems devops category and pictograms (carbon-design-system#6332) fix(button): prevent tooltip from showing on incorrect hover (carbon-design-system#6349) feat(pictograms): add coronavirus pictogram in Life Science category (carbon-design-system#6351) chore(npmignore): update npmignore file (carbon-design-system#6350) chore(project): sync generated files fix(pagination): set correct width on ghost buttons (carbon-design-system#6344) docs(text-area): rename story file to use camel case in component name (carbon-design-system#6334) chore(release): v10.15.0-rc.0 (carbon-design-system#6343) feat(pictograms): New add device pictogram (carbon-design-system#6333) fix(Dropdown): add downshiftProps handling (carbon-design-system#6341) feat(pictograms): add supply chain category with new pictograms (carbon-design-system#6305) feat(pictograms): add gift pictogram in retail (carbon-design-system#6336) feat(pictograms): add blender pictogram in lifestyle category (carbon-design-system#6318) fix(dropdowns): pass user ID's to Downshift (carbon-design-system#6326) fix(carbon): revert pr 6185 (carbon-design-system#6331) feat(react): remove unsafe lifecycle methods from DataTable and DatePicker (carbon-design-system#6307) docs(handbook): add icon docs to developer-handbook (carbon-design-system#6300) feat(pictograms): add planning analytics pictogram to cloud category (carbon-design-system#6320) chore(project): sync generated files fix(loading): use `$overlay-01` token for overlay (carbon-design-system#6323) ... # Conflicts: # packages/components/src/components/tabs/_tabs.scss
Now without my goofy busted commit history ❤️
Closes #6304
In our updates we broke functionality for user supplied IDs getting passed down to Downshift. With this new implementation if the user provides a value for the
id
prop Downshift will create anid
prop using that supplied id for label, menu etc appending the name of the element as intended (id="address"
would result inid="address-label"
,id="address-menu"
etc on the child components)Changelog
id
prop to wrapper componentid
prop toselectProps
objectid
prop touseSelect
and remove unused label IDsTesting / Reviewing
Go in the changed file and change the value for the
id
prop to something distinct. Then open dev tools on the Storybook for that element and search for that new value which should be seen on label, field, and toggle buttons for each component.