Skip to content

Commit

Permalink
Merge pull request #2586 from evidence-dev/next
Browse files Browse the repository at this point in the history
Hotfix: selectAllByDefault fix
  • Loading branch information
ItsMeBrianD authored Sep 26, 2024
2 parents 540ad43 + 2bf0892 commit 745e222
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/twenty-squids-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@evidence-dev/core-components': patch
---

Defer selectAll=false to ensure that all options are available before the behavior is turned off
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ export const dropdownOptionStore = (opts = {}) => {
});
return $options;
});
selectAll = false;
setTimeout(() => {
// defer to end of event loop
selectAll = false;
}, 0);
},
100
)
Expand Down

0 comments on commit 745e222

Please sign in to comment.