Skip to content

Commit a92a39e

Browse files
Merge pull request #4264 from nextcloud/deps/nextcloud/vue-select-3.23.0
2 parents 68b3f9e + d15f797 commit a92a39e

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@nextcloud/l10n": "^2.0.1",
5353
"@nextcloud/logger": "^2.2.1",
5454
"@nextcloud/router": "^2.0.0",
55-
"@nextcloud/vue-select": "^3.21.2",
55+
"@nextcloud/vue-select": "^3.23.0",
5656
"@skjnldsv/sanitize-svg": "^1.0.2",
5757
"@vueuse/components": "^10.0.2",
5858
"@vueuse/core": "^10.1.2",

src/components/NcSelect/NcSelect.vue

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,15 @@ export default {
778778
default: 'bottom',
779779
},
780780
781+
/**
782+
* If false, the focused dropdown option will not be reset when filtered
783+
* options change
784+
*/
785+
resetFocusOnOptionsChange: {
786+
type: Boolean,
787+
default: true,
788+
},
789+
781790
/**
782791
* Enable the user selector with avatars
783792
*
@@ -1040,6 +1049,10 @@ body {
10401049
.vs__selected-options {
10411050
flex-wrap: nowrap;
10421051
overflow: auto;
1052+
min-width: unset;
1053+
.vs__selected {
1054+
min-width: unset;
1055+
}
10431056
}
10441057
}
10451058
@@ -1063,20 +1076,6 @@ body {
10631076
}
10641077
}
10651078
1066-
/**
1067-
* Fix overlow of selected options
1068-
* There is an upstream pull request, if it is merged and released remove this fix
1069-
* https://github.com/sagalbot/vue-select/pull/1756
1070-
*/
1071-
&:not(.select--no-wrap) {
1072-
.vs__selected-options {
1073-
min-width: 0;
1074-
.vs__selected {
1075-
min-width: 0;
1076-
}
1077-
}
1078-
}
1079-
10801079
&.vs--single {
10811080
&.vs--loading,
10821081
&.vs--open {

0 commit comments

Comments
 (0)