-
Notifications
You must be signed in to change notification settings - Fork 24
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
add disableAdornment, disableLabel to getInputProps #21
Conversation
@caub Instead of {label && <InputLabel {...labelProps}>{label}</InputLabel>} For <StarWarsSelect getInputProps={() => ({ endAdornment: null })} /> I'd rather leave go that route unless I'm missing something. After the change to |
Good points, thanks, done ^ |
I just published this as Once we have a good example story for multi-select (#5, including chips and "# selected") and option groups (#20) I plan to release Thanks for your contributions to the project 😄 |
@techniq you're welcome for the multi-select, I'd avoid to toggle an item when selecting it again (rather filtering it from Also, it's not easy, but the dropdown should always be opened as long as the input has focus. Sometimes I have to blur and refocus it (or I could type in too) to reopen it after a selecting an item) I'm working on the multi-group-select, but without downshift for now, in pure mui with react-popper, I'll post a codesandbox, and hopefully use your lib, when I'm more familiar with downshift |
@caub To keep the menu open, you could look at using downhift's stateReducer prop, which shows this very example. I'd like to look into toggling, but also considered showing the selected items at the top of the list and it's makes more sense to see the selected items at the top upon opening the menu (or if the selections were set ahead of time, for instance from the query string). The trouble comes to not have the list jump when you put them at the top, and also not having the item "disappear" when you select it and it moves to the top (so you would kind of need both - the item added to the top without affecting what is shown, but also show the entry at the top for quick deselection (especially if you are paginating the items from the server). Anyways, I look forward to your example, and thanks again :) |
@techniq in my project I did it without downshift, with this way: https://codesandbox.io/s/yp4o52j6mx |
it should work, tested on chrome/ff |
It works now, that was weird 😕 Looks nice 😄 Some initial feedback: Setting a
|
Oh thanks, interesting I've tried to add those left/right and delete selection in the first multi-select https://codesandbox.io/s/yp4o52j6mx it's I'm sure it's possible to do it with Downshift, it basically replaces my Dropdown, it's quite equivalent, I was just not able to understand yet all the downshift flow, but yes, I'm sure you can be able to make those components. You'll need to be able to adjust downshift's width, I gave it a try, but not for long Best, thanks |
No description provided.