Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@nextcloud/l10n": "^2.0.1",
"@nextcloud/logger": "^2.2.1",
"@nextcloud/router": "^2.0.0",
"@nextcloud/vue-select": "^3.21.2",
"@nextcloud/vue-select": "^3.23.0",
"@skjnldsv/sanitize-svg": "^1.0.2",
"@vueuse/components": "^10.0.2",
"@vueuse/core": "^10.1.2",
Expand Down
27 changes: 13 additions & 14 deletions src/components/NcSelect/NcSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,15 @@ export default {
default: 'bottom',
},

/**
* If false, the focused dropdown option will not be reset when filtered
* options change
*/
resetFocusOnOptionsChange: {
type: Boolean,
default: true,
},

/**
* Enable the user selector with avatars
*
Expand Down Expand Up @@ -1040,6 +1049,10 @@ body {
.vs__selected-options {
flex-wrap: nowrap;
overflow: auto;
min-width: unset;
.vs__selected {
min-width: unset;
}
}
}

Expand All @@ -1063,20 +1076,6 @@ body {
}
}

/**
* Fix overlow of selected options
* There is an upstream pull request, if it is merged and released remove this fix
* https://github.com/sagalbot/vue-select/pull/1756
*/
&:not(.select--no-wrap) {
.vs__selected-options {
min-width: 0;
.vs__selected {
min-width: 0;
}
}
}

&.vs--single {
&.vs--loading,
&.vs--open {
Expand Down