-
Notifications
You must be signed in to change notification settings - Fork 320
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 drop down counter in multi state with single line #503
Conversation
### Close dropdown with multi choose | ||
Pass closeMenuOnSelect to close the multi choose any time an options is chosen. | ||
### Multi line states | ||
Drop down component support multiple options selection in two different state - single line and multiple lines |
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.
replace story to more readable and helpful one about multi state
@@ -0,0 +1,31 @@ | |||
import { useEffect, useState } from "react"; |
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.
This file can be simply named hooks
, since we're in the context of ValueContainer
already.
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.
change it as in other components (directory of hooks and a file for each hook)
src/components/Dropdown/components/ValueContainer/ValueContainerHooks.js
Outdated
Show resolved
Hide resolved
src/components/Dropdown/components/ValueContainer/ValueContainerHooks.js
Outdated
Show resolved
Hide resolved
src/components/Dropdown/components/ValueContainer/ValueContainerHooks.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
…erHooks.js Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
…erHooks.js Co-authored-by: Sahar Brodbeker <saharonb@gmail.com>
…-react-core into bugs/hadas/dropdown2
Basic
npm run plop
) to create a new component.PropTypes
.Style
NewComponent.modules.scss
file inside of theNewComponent
folder.Storybook
/src/NewComponent/__stories__/NewComponent.stories.js
file.Tests