Skip to content

Commit

Permalink
fix: ssr #235
Browse files Browse the repository at this point in the history
  • Loading branch information
adamberecz committed May 31, 2022
1 parent f1dfed0 commit 44bce29
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 8 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## v2.4.1

> `2021-05-31`
### 🐞 Bug Fixes
- Hotfix for SSR [#235](https://github.com/vueform/multiselect/issues/235

## v2.4.0

> `2021-05-30`
Expand Down Expand Up @@ -30,8 +37,7 @@
- Resolved number tag creation duplicate bug.
- Input height fix when `searchable` for FF.
- CSS: moved max height to dropdown container from wrapper.
- Vite & Nuxt 3 build warn fixes.

- Vite & Nuxt 3 build warn fixes.).

## v2.3.4

Expand Down
2 changes: 1 addition & 1 deletion dist/multiselect.global.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ function useScroll (props, context, dep)
// =============== HOOKS ================

onMounted(() => {
if (id && id.value) {
if (id && id.value && document && document.querySelector) {
label.value = document.querySelector(`[for="${id.value}"]`)?.innerText || null;
}
});
Expand Down
2 changes: 1 addition & 1 deletion dist/multiselect.vue2.global.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/multiselect.vue2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ function useScroll (props, context, dep)
// =============== HOOKS ================

onMounted(() => {
if (id && id.value) {
if (id && id.value && document && document.querySelector) {
label.value = document.querySelector(`[for="${id.value}"]`)?.innerText || null;
}
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vueform/multiselect",
"version": "2.4.0",
"version": "2.4.1",
"private": false,
"description": "Vue 3 multiselect component with single select, multiselect and tagging options.",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useA11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export default function useScroll (props, context, dep)
// =============== HOOKS ================

onMounted(() => {
if (id && id.value) {
if (id && id.value && document && document.querySelector) {
label.value = document.querySelector(`[for="${id.value}"]`)?.innerText || null
}
})
Expand Down

0 comments on commit 44bce29

Please sign in to comment.