Skip to content

Commit 44bce29

Browse files
committed
fix: ssr #235
1 parent f1dfed0 commit 44bce29

File tree

7 files changed

+14
-8
lines changed

7 files changed

+14
-8
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v2.4.1
2+
3+
> `2021-05-31`
4+
5+
### 🐞 Bug Fixes
6+
- Hotfix for SSR [#235](https://github.com/vueform/multiselect/issues/235
7+
18
## v2.4.0
29

310
> `2021-05-30`
@@ -30,8 +37,7 @@
3037
- Resolved number tag creation duplicate bug.
3138
- Input height fix when `searchable` for FF.
3239
- CSS: moved max height to dropdown container from wrapper.
33-
- Vite & Nuxt 3 build warn fixes.
34-
40+
- Vite & Nuxt 3 build warn fixes.).
3541

3642
## v2.3.4
3743

dist/multiselect.global.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/multiselect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ function useScroll (props, context, dep)
19221922
// =============== HOOKS ================
19231923

19241924
onMounted(() => {
1925-
if (id && id.value) {
1925+
if (id && id.value && document && document.querySelector) {
19261926
label.value = document.querySelector(`[for="${id.value}"]`)?.innerText || null;
19271927
}
19281928
});

dist/multiselect.vue2.global.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/multiselect.vue2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1922,7 +1922,7 @@ function useScroll (props, context, dep)
19221922
// =============== HOOKS ================
19231923

19241924
onMounted(() => {
1925-
if (id && id.value) {
1925+
if (id && id.value && document && document.querySelector) {
19261926
label.value = document.querySelector(`[for="${id.value}"]`)?.innerText || null;
19271927
}
19281928
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vueform/multiselect",
3-
"version": "2.4.0",
3+
"version": "2.4.1",
44
"private": false,
55
"description": "Vue 3 multiselect component with single select, multiselect and tagging options.",
66
"license": "MIT",

src/composables/useA11y.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default function useScroll (props, context, dep)
116116
// =============== HOOKS ================
117117

118118
onMounted(() => {
119-
if (id && id.value) {
119+
if (id && id.value && document && document.querySelector) {
120120
label.value = document.querySelector(`[for="${id.value}"]`)?.innerText || null
121121
}
122122
})

0 commit comments

Comments
 (0)