Skip to content

Commit f0436f7

Browse files
committed
chore: cl, version, build
1 parent faf2d35 commit f0436f7

10 files changed

+1289
-817
lines changed

Diff for: CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## v2.6.7
2+
3+
> `2024-03-20`
4+
5+
### 🐞 Bug Fixes
6+
- Clicking on scroll bar closes the dropdown fix #383
7+
- Types for scoped slots #391
8+
- Missing method types and typo fixes #376 #392
9+
- Don't show dropdown id when id is not defined
10+
- Avoid error when multiselect does not exist #394
11+
112
## v2.6.6
213

314
> `2023-10-18`

Diff for: dist/multiselect.global.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/multiselect.js

+17-14
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ function usePointer (props, context, dep)
13401340
});
13411341

13421342
watch(isOpen, (val) => {
1343-
if (val) {
1343+
if (val && multiselect?.value) {
13441344
let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0];
13451345

13461346
if (!firstSelected) {
@@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep)
30713071
return
30723072
}
30733073

3074+
/* istanbul ignore next: popper mock */
30743075
popper.value = createPopper(multiselect.value, dropdown.value, {
30753076
strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined,
30763077
placement: openDirection.value,
@@ -4399,10 +4400,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
43994400
class: normalizeClass(_ctx.classList.container),
44004401
id: $props.searchable ? undefined : $props.id,
44014402
dir: $props.rtl ? 'rtl' : undefined,
4402-
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
4403-
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
4404-
onKeyup: _cache[12] || (_cache[12] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
4405-
onKeydown: _cache[13] || (_cache[13] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
4403+
onFocusin: _cache[12] || (_cache[12] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
4404+
onFocusout: _cache[13] || (_cache[13] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
4405+
onKeyup: _cache[14] || (_cache[14] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
4406+
onKeydown: _cache[15] || (_cache[15] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
44064407
}, [
44074408
createElementVNode("div", mergeProps({
44084409
class: _ctx.classList.wrapper,
@@ -4478,7 +4479,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
44784479
}, null, 2 /* CLASS */)
44794480
], 10 /* CLASS, PROPS */, _hoisted_5))
44804481
: createCommentVNode("v-if", true)
4481-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4))
4482+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_4))
44824483
])
44834484
}), 256 /* UNKEYED_FRAGMENT */)),
44844485
createElementVNode("div", {
@@ -4581,7 +4582,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
45814582
createElementVNode("span", {
45824583
class: normalizeClass(_ctx.classList.clearIcon)
45834584
}, null, 2 /* CLASS */)
4584-
], 34 /* CLASS, HYDRATE_EVENTS */)
4585+
], 34 /* CLASS, NEED_HYDRATION */)
45854586
])
45864587
: createCommentVNode("v-if", true),
45874588
createCommentVNode(" Caret "),
@@ -4605,10 +4606,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46054606
disabled: !$props.appendToBody && !$props.appendTo
46064607
}, [
46074608
createElementVNode("div", {
4608-
id: `${$props.id}-dropdown`,
4609+
id: $props.id ? `${$props.id}-dropdown` : undefined,
46094610
class: normalizeClass(_ctx.classList.dropdown),
46104611
tabindex: "-1",
4611-
ref: "dropdown"
4612+
ref: "dropdown",
4613+
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
4614+
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args)))
46124615
}, [
46134616
renderSlot(_ctx.$slots, "beforelist", { options: _ctx.fo }),
46144617
createElementVNode("ul", {
@@ -4643,7 +4646,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46434646
innerHTML: _ctx.localize(group[$props.groupLabel])
46444647
}, null, 8 /* PROPS */, _hoisted_12)
46454648
])
4646-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11))
4649+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11))
46474650
: createCommentVNode("v-if", true),
46484651
createElementVNode("ul", {
46494652
class: normalizeClass(_ctx.classList.groupOptions),
@@ -4671,7 +4674,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46714674
}, () => [
46724675
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
46734676
])
4674-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14))
4677+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14))
46754678
}), 128 /* KEYED_FRAGMENT */))
46764679
], 10 /* CLASS, PROPS */, _hoisted_13)
46774680
], 10 /* CLASS, PROPS */, _hoisted_10))
@@ -4697,7 +4700,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46974700
}, () => [
46984701
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
46994702
])
4700-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15))
4703+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15))
47014704
}), 128 /* KEYED_FRAGMENT */))
47024705
], 10 /* CLASS, PROPS */, _hoisted_9),
47034706
(_ctx.noOptions)
@@ -4730,7 +4733,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
47304733
], 2 /* CLASS */))
47314734
: createCommentVNode("v-if", true),
47324735
renderSlot(_ctx.$slots, "afterlist", { options: _ctx.fo })
4733-
], 10 /* CLASS, PROPS */, _hoisted_8)
4736+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8)
47344737
], 8 /* PROPS */, ["to", "disabled"])),
47354738
createCommentVNode(" Hacky input element to show HTML5 required warning "),
47364739
($props.required)
@@ -4775,7 +4778,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
47754778
createElementVNode("div", {
47764779
class: normalizeClass(_ctx.classList.spacer)
47774780
}, null, 2 /* CLASS */)
4778-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1))
4781+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1))
47794782
}
47804783

47814784
script.render = render;

Diff for: dist/multiselect.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/multiselect.mjs

+17-14
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ function usePointer (props, context, dep)
13401340
});
13411341

13421342
watch(isOpen, (val) => {
1343-
if (val) {
1343+
if (val && multiselect?.value) {
13441344
let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0];
13451345

13461346
if (!firstSelected) {
@@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep)
30713071
return
30723072
}
30733073

3074+
/* istanbul ignore next: popper mock */
30743075
popper.value = createPopper(multiselect.value, dropdown.value, {
30753076
strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined,
30763077
placement: openDirection.value,
@@ -4399,10 +4400,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
43994400
class: normalizeClass(_ctx.classList.container),
44004401
id: $props.searchable ? undefined : $props.id,
44014402
dir: $props.rtl ? 'rtl' : undefined,
4402-
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
4403-
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
4404-
onKeyup: _cache[12] || (_cache[12] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
4405-
onKeydown: _cache[13] || (_cache[13] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
4403+
onFocusin: _cache[12] || (_cache[12] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
4404+
onFocusout: _cache[13] || (_cache[13] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args))),
4405+
onKeyup: _cache[14] || (_cache[14] = (...args) => (_ctx.handleKeyup && _ctx.handleKeyup(...args))),
4406+
onKeydown: _cache[15] || (_cache[15] = (...args) => (_ctx.handleKeydown && _ctx.handleKeydown(...args)))
44064407
}, [
44074408
createElementVNode("div", mergeProps({
44084409
class: _ctx.classList.wrapper,
@@ -4478,7 +4479,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
44784479
}, null, 2 /* CLASS */)
44794480
], 10 /* CLASS, PROPS */, _hoisted_5))
44804481
: createCommentVNode("v-if", true)
4481-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_4))
4482+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_4))
44824483
])
44834484
}), 256 /* UNKEYED_FRAGMENT */)),
44844485
createElementVNode("div", {
@@ -4581,7 +4582,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
45814582
createElementVNode("span", {
45824583
class: normalizeClass(_ctx.classList.clearIcon)
45834584
}, null, 2 /* CLASS */)
4584-
], 34 /* CLASS, HYDRATE_EVENTS */)
4585+
], 34 /* CLASS, NEED_HYDRATION */)
45854586
])
45864587
: createCommentVNode("v-if", true),
45874588
createCommentVNode(" Caret "),
@@ -4605,10 +4606,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46054606
disabled: !$props.appendToBody && !$props.appendTo
46064607
}, [
46074608
createElementVNode("div", {
4608-
id: `${$props.id}-dropdown`,
4609+
id: $props.id ? `${$props.id}-dropdown` : undefined,
46094610
class: normalizeClass(_ctx.classList.dropdown),
46104611
tabindex: "-1",
4611-
ref: "dropdown"
4612+
ref: "dropdown",
4613+
onFocusin: _cache[10] || (_cache[10] = (...args) => (_ctx.handleFocusIn && _ctx.handleFocusIn(...args))),
4614+
onFocusout: _cache[11] || (_cache[11] = (...args) => (_ctx.handleFocusOut && _ctx.handleFocusOut(...args)))
46124615
}, [
46134616
renderSlot(_ctx.$slots, "beforelist", { options: _ctx.fo }),
46144617
createElementVNode("ul", {
@@ -4643,7 +4646,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46434646
innerHTML: _ctx.localize(group[$props.groupLabel])
46444647
}, null, 8 /* PROPS */, _hoisted_12)
46454648
])
4646-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11))
4649+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_11))
46474650
: createCommentVNode("v-if", true),
46484651
createElementVNode("ul", {
46494652
class: normalizeClass(_ctx.classList.groupOptions),
@@ -4671,7 +4674,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46714674
}, () => [
46724675
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
46734676
])
4674-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_14))
4677+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_14))
46754678
}), 128 /* KEYED_FRAGMENT */))
46764679
], 10 /* CLASS, PROPS */, _hoisted_13)
46774680
], 10 /* CLASS, PROPS */, _hoisted_10))
@@ -4697,7 +4700,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
46974700
}, () => [
46984701
createElementVNode("span", null, toDisplayString(_ctx.localize(option[$props.label])), 1 /* TEXT */)
46994702
])
4700-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_15))
4703+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_15))
47014704
}), 128 /* KEYED_FRAGMENT */))
47024705
], 10 /* CLASS, PROPS */, _hoisted_9),
47034706
(_ctx.noOptions)
@@ -4730,7 +4733,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
47304733
], 2 /* CLASS */))
47314734
: createCommentVNode("v-if", true),
47324735
renderSlot(_ctx.$slots, "afterlist", { options: _ctx.fo })
4733-
], 10 /* CLASS, PROPS */, _hoisted_8)
4736+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_8)
47344737
], 8 /* PROPS */, ["to", "disabled"])),
47354738
createCommentVNode(" Hacky input element to show HTML5 required warning "),
47364739
($props.required)
@@ -4775,7 +4778,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
47754778
createElementVNode("div", {
47764779
class: normalizeClass(_ctx.classList.spacer)
47774780
}, null, 2 /* CLASS */)
4778-
], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1))
4781+
], 42 /* CLASS, PROPS, NEED_HYDRATION */, _hoisted_1))
47794782
}
47804783

47814784
script.render = render;

Diff for: dist/multiselect.vue2.global.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: dist/multiselect.vue2.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ function usePointer (props, context, dep)
13401340
});
13411341

13421342
watch(isOpen, (val) => {
1343-
if (val) {
1343+
if (val && multiselect?.value) {
13441344
let firstSelected = multiselect.value.querySelectorAll(`[data-selected]`)[0];
13451345

13461346
if (!firstSelected) {
@@ -3071,6 +3071,7 @@ function useDropdown (props, context, dep)
30713071
return
30723072
}
30733073

3074+
/* istanbul ignore next: popper mock */
30743075
popper.value = createPopper(multiselect.value, dropdown.value, {
30753076
strategy: hasFixedParent(multiselect.value) ? /* istanbul ignore next: UI feature */ 'fixed' : undefined,
30763077
placement: openDirection.value,
@@ -4830,7 +4831,11 @@ var __vue_render__ = function () {
48304831
{
48314832
ref: "dropdown",
48324833
class: _vm.classList.dropdown,
4833-
attrs: { id: _vm.id + "-dropdown", tabindex: "-1" },
4834+
attrs: {
4835+
id: _vm.id ? _vm.id + "-dropdown" : undefined,
4836+
tabindex: "-1",
4837+
},
4838+
on: { focusin: _vm.handleFocusIn, focusout: _vm.handleFocusOut },
48344839
},
48354840
[
48364841
_vm._t("beforelist", null, { options: _vm.fo }),

Diff for: dist/multiselect.vue2.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)