select same item will set its value to null
See original GitHub issueI see in your documents demo, when you repeat select the same value, the option will not be deselected, but when I use this plugin, it will deselect this same option.
I see in your source code there is a logic if (this.isOptionSelected(option)) this.deselect(option)
.
I don’t want this behavior, I just want to keep the selected option if user select the same option in the dropdown list
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:15 (4 by maintainers)
Top Results From Across the Web
How to set select option value to null in Angular 2
I can't use [ngValue] on the default options; it just gives me a value of 0: null (string). And skip setting value results...
Read more >How to set NULL value to items when a region is selected
I want to set the value of the select list of Region 1 (item P1_SELECT_1) to NULL value when I click on the...
Read more >Message Sets: TDS Null handling options - IBM
TDS supports the handling of null values within messages, provided that the logical Nillable property of the element is set.
Read more >Everything you wanted to know about $null - PowerShell
$null is an automatic variable in PowerShell used to represent NULL. You can assign it to variables, use it in comparisons and use...
Read more >B.3.4.3 Problems with NULL Values - MySQL :: Developer Zone
The concept of the NULL value is a common source of confusion for newcomers to SQL, who often think that NULL is the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hah, our QA halt upon this for the exact same reason. This behavior shouldn’t be enabled by default IMO.
I dissected @msyesyan PR into an extended component of
vue-select
as a temporary workaround, which absolves source intervention. I did however, settoggleSelectOption
default value tofalse
. Make sure your Vue version supports composition with theextends
property.Edit: added
disabled
prop as well. You’ll need to style it though.This is fixed in the latest
v.2.5.0
release.