-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
Combobox does not show results with multiple
#2963
Comments
FYI I noticed this too when testing the feature originally. It's always possible I was doing something wrong. But if not, then that indicates it may be a bug on Zag's end and would need to be reported upstream. Let's review first to confirm, but just a heads up! |
I checked, the official React Zag StackBlitz instance works with |
@MrVauxs can you expand on what you mean by "controls". Unfortunately your Stackblitz is non-functional for me. Just links to their homepage. |
Oh, the stackblitz is supposed to be what is linked on the Zag page. And what I meant is that the StackBlitz example Zag has, just doesnt have |
I'm still completely lost here. But when implemented on our component, it's not working. Which is why this ticket was all about, correct? Maybe put Stackblitz aside and share whatever code you're referring to here please. |
You weren't sure if this was a bug in Skeleton, or a bug in Zag. I was confirming that it is Skeletons, with an added comment about Zag's official example having outdated types but nonetheless working when you add the |
I'll take a look at ZagJs's StackBlitz to see how they got the behavior working. |
@MrVauxs @phamduylong so two things with this... First, the feature was filed as a bug ticket - which is fine. But does not adequately summarize the changes required. In short, a bug would imply we implemented something incorrectly or it's not behaving as expected. However this is not the case. The feature is working as expected, but the ability to support Second, as a feature request, it's at our discretion if we decide to support the request as proposed. And while there's certainly a use-case for a multiple-selection combobox type interface, I feel like it overlaps with another primitive we already provide - the Tags Input. So in order to support multiple-selection in the Combobox this would require essentially recreating the Tags Input within the Combobox component. I think this is beyond the scope of what we intend for these temporary component features - so I'm going to deny this for now. Note that Long made a great attempt at supporting this in his PR, but you can see my notes here as to why I don't agree with the way this was implemented: #3008 (comment) What I'm going to do instead is update the component and documentation to remove the
So other words, we will support something like this. Just not yet. If you would like me to clarify on this, let me know. |
You can see the change here. This will be part of the next release: #3033 Again, if I can provide more context around the long term plans here, let me know. |
Current Behavior
Combobox does not fill the input with the selected choices if
multiple
is enabled true.This also inadvertently causes
required
to always cause the input to fail the check.Expected Behavior
Combobox filling the input with the given array, would be nice to be able to provide a function for the separator used (so you can have something like
x, y, and z
instead of plain.join(", ")
.Steps To Reproduce
No response
Link to Reproduction / Stackblitz
No response
More Information
Earlier Discord Report for History: https://discord.com/channels/1003691521280856084/1191790107867488316/1303464712981184584
The text was updated successfully, but these errors were encountered: