We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc3adaf commit 0c7b9b0Copy full SHA for 0c7b9b0
packages/carta-md/src/lib/internal/components/Toolbar.svelte
@@ -44,7 +44,7 @@
44
const waitForDOMUpdate = () => new Promise(requestAnimationFrame);
45
46
const onResize = debounce(async () => {
47
- // Resize to fit the icons
+ if (!toolbar || !iconsContainer) return;
48
const overflowing = () => toolbar.scrollWidth - toolbar.clientWidth > 0;
49
while (overflowing()) {
50
visibleIcons.pop();
0 commit comments