@gitlab/ui 62.9.2 → 62.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [62.9.3](https://gitlab.com/gitlab-org/gitlab-ui/compare/v62.9.2...v62.9.3) (2023-05-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **dropdown:** Use $scopedSlots instead of $slots ([4ad73f5](https://gitlab.com/gitlab-org/gitlab-ui/commit/4ad73f58197d3e65fedd10464592cfc3fd7984ce))
|
|
7
|
+
|
|
1
8
|
## [62.9.2](https://gitlab.com/gitlab-org/gitlab-ui/compare/v62.9.1...v62.9.2) (2023-05-10)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -202,8 +202,8 @@ var script = {
|
|
|
202
202
|
},
|
|
203
203
|
methods: {
|
|
204
204
|
hasSlotContents(slotName) {
|
|
205
|
-
|
|
206
|
-
return Boolean(this.$
|
|
205
|
+
var _this$$scopedSlots$sl, _this$$scopedSlots;
|
|
206
|
+
return Boolean((_this$$scopedSlots$sl = (_this$$scopedSlots = this.$scopedSlots)[slotName]) === null || _this$$scopedSlots$sl === void 0 ? void 0 : _this$$scopedSlots$sl.call(_this$$scopedSlots));
|
|
207
207
|
},
|
|
208
208
|
show() {
|
|
209
209
|
this.$refs.dropdown.show(...arguments);
|
package/package.json
CHANGED
|
@@ -222,8 +222,7 @@ export default {
|
|
|
222
222
|
},
|
|
223
223
|
methods: {
|
|
224
224
|
hasSlotContents(slotName) {
|
|
225
|
-
|
|
226
|
-
return Boolean(this.$slots[slotName]);
|
|
225
|
+
return Boolean(this.$scopedSlots[slotName]?.());
|
|
227
226
|
},
|
|
228
227
|
show(...args) {
|
|
229
228
|
this.$refs.dropdown.show(...args);
|