File tree 6 files changed +11
-7
lines changed
6 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,7 @@ export default {
191
191
}
192
192
/**
193
193
* Event emitted when something is dropped on the breadcrumb.
194
+ *
194
195
* @param {Event} event The DOM drop event
195
196
* @param {(string|object)} to The `to` prop or, if not set, the `href` prop
196
197
*/
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default {
55
55
mounted() {
56
56
document.getElementById('content').classList.add('nc-guest-content')
57
57
},
58
- destroyed () {
58
+ unmounted () {
59
59
document.getElementById('content').classList.remove('nc-guest-content')
60
60
},
61
61
}
Original file line number Diff line number Diff line change @@ -142,7 +142,9 @@ export default {
142
142
143
143
emits: [
144
144
'close',
145
+ 'closed',
145
146
'open',
147
+ 'opened',
146
148
'update:open',
147
149
'cancel',
148
150
],
@@ -173,7 +175,7 @@ export default {
173
175
mounted() {
174
176
document.addEventListener('keydown', this.onKeyDown)
175
177
},
176
- beforeDestroy () {
178
+ beforeUnmount () {
177
179
document.removeEventListener('keydown', this.onKeyDown)
178
180
},
179
181
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ export default {
130
130
setReturnFocus: {
131
131
required: false,
132
132
type: Object,
133
+ default: false,
133
134
},
134
135
},
135
136
Original file line number Diff line number Diff line change @@ -472,7 +472,6 @@ export default {
472
472
'select--no-wrap': noWrap,
473
473
}"
474
474
v-bind="propsToForward"
475
- v-on="$listeners"
476
475
@search="searchString => search = searchString">
477
476
<template #open-indicator="{ attributes }">
478
477
<ChevronDown v-bind="attributes"
@@ -504,7 +503,7 @@ export default {
504
503
<template #no-options>
505
504
{{ t('No results') }}
506
505
</template>
507
- <template v-for="(_, name) in $scopedSlots " #[name]="data">
506
+ <template v-for="(_, name) in $slots " #[name]="data">
508
507
<!-- @slot Any combination of slots from https://vue-select.org/api/slots.html -->
509
508
<slot :name="name" v-bind="data" />
510
509
</template>
@@ -769,6 +768,7 @@ export default {
769
768
770
769
const propsToForward = {
771
770
...initialPropsToForward,
771
+ ...this.$attrs,
772
772
label: this.localLabel,
773
773
}
774
774
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ export default {
137
137
:value="localValue"
138
138
@search="searchString => search = searchString"
139
139
@input="handleInput"
140
- v-on="{ ...$listeners, input: () => {} }">
140
+ v-on="{ input: () => {} }">
141
141
<!-- Do not forward input event listener to NcSelect as we emit custom input events programmatically -->
142
142
<template #option="option">
143
143
<NcEllipsisedOption :name="getOptionLabel(option)"
@@ -147,7 +147,7 @@ export default {
147
147
<NcEllipsisedOption :name="getOptionLabel(selectedOption)"
148
148
:search="search" />
149
149
</template>
150
- <template v-for="(_, name) in $scopedSlots " #[name]="data">
150
+ <template v-for="(_, name) in $slots " #[name]="data">
151
151
<!-- @slot Any combination of slots from https://vue-select.org/api/slots.html -->
152
152
<slot :name="name" v-bind="data" />
153
153
</template>
@@ -286,7 +286,7 @@ export default {
286
286
...propsToForward
287
287
} = this.$props
288
288
289
- return propsToForward
289
+ return { propsToForward, ...this.$attrs }
290
290
},
291
291
},
292
292
You can’t perform that action at this time.
0 commit comments