Comments (4)
Hi @ajitzero
I understand your point, but this issue is because I am trying to replicate the code that is in the documentation, in the documentation the combobox closes when I select an option.
I'm not sure if in the first version the combobox will support multiple options, we would have to see how shadcn has it, if it has a special component for multiselect or if a combobox is used.
I like your idea, thanks for commenting.
from spartan.
This will be part of the next release!
from spartan.
The current behavior is expected behaviour for a combobox, especially when selecting multiple items or searching for something and hitting "enter", we don't want it to be closed.
Your point makes sense in a single-select scenario and would be good to have as a directive/attribute here, like [comboboxSettings]="{ single: true }"
or [closeOnSelect]
- That way we don't need to track emitted event to do anything manually, and the actual emission (if needed), can be taken from the FormControl's valueChanges stream (or with ngModelChanges, take your pick).
What do you think?
from spartan.
Issue was addressed as part of releases: cli 0.0.1-alpha.334 & ui 0.0.1-alpha.321
from spartan.
Related Issues (20)
- RFC: Add breadcrumb component
- bug: select doesn't recognize changes if the initial value and the first change is the same
- Include music UI example at examples page
- RFC: Add Filter functionality for Listbox component HOT 2
- feat(data-table): dynamic table
- Not installing in angular 17 HOT 1
- RFC: Expose outputs closed and opened for brnMenuTriggerFor directive HOT 1
- Where would you like to create your workspace - question missing from Installation guide HOT 3
- Checkboxes within a scrollarea
- Tooltip covers other Elements after hiding
- using aria-describedby is causing a blank line at the end of the page
- NG0311: Directive CdkMenuTrigger does not have an input with a public name of brnMenuTriggerFor. HOT 2
- Error: No matching export for "DynamicViewModule" in @ngneat/overview package HOT 2
- Data Table: Table height does't update when size options change
- Wrong Import typography-helm DOCS
- [Avatar] Dont Show Avatar after fetching user Data HOT 16
- [Feature Request] - namespace css variables please HOT 2
- [Feature Request] - Add components to under one lib or to an existing lib
- Bartender not working HOT 2
- Dynamic table columns
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spartan.