-
Notifications
You must be signed in to change notification settings - Fork 65
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(component): convert Dropdown/Select to FC and add MultiSelect #303
Conversation
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.
So about my concerns with module size: I did a analysis by bundling the es module with webpack, these are the stats I received:
368 KiB - [Downshift]
353 KiB - [w/o]
So that's if someone bundled the entire BigDesign library with their app. I'm not concerned with those numbers. Maybe we should do some more testing around that though?
openMenu(); | ||
}, | ||
onKeyDown: (event: any) => { | ||
if (multi && event.key === 'Backspace' && !inputValue) { |
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.
Should we be checking for inputValue.length
? Could there be a corner case with 0
?
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.
Hm, I fail to see why it needs to change, tbh. inputValue
is a string, and will only return falsey if it's ""
right (which is what I want)?
a0cb9fe
to
460248d
Compare
50cda46
to
16cadf5
Compare
e5d2b3b
to
526430d
Compare
08e268a
to
ac1b891
Compare
b46f91f
to
6280bd9
Compare
f6a8504
to
0f6e6e0
Compare
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.
Let's get this merged and iterate on it
** BREAKING CHANGES**
Changes