Skip to content

Commit

Permalink
fix: simplified if
Browse files Browse the repository at this point in the history
  • Loading branch information
KovaCro authored and flauc committed Dec 29, 2023
1 parent 22212d6 commit 74ddadb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/lib/src/form-fields/multisearch.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,7 @@
}
}
$: if (open) {
document.documentElement.style.overflowY = 'hidden';
} else {
document.documentElement.style.overflowY = '';
}
$: document.documentElement.style.overflowY = open ? 'hidden' : '';
onMount(async () => {
if (!maxSelects) {
Expand Down

0 comments on commit 74ddadb

Please sign in to comment.