Fritz Lekschas

Results 179 comments of Fritz Lekschas

Thanks for reporting! I suspect that either the width, height, or both are zero for a split second or that this is some kind of race condition during the initial...

This is wild... somehow when VSCode executes the cell, the screen width and height is reported to be `1290` and `22144` respectively. The height is obviously nonsense and the cause...

There are many ways to achieve this. The easiest is to store the form content with [svelte stores](https://svelte.dev/tutorial/writable-stores).

You might need to recreate the style object to have its reference change when `modalBg` changes. E.g.: ```svelte $: styleWindow = { width: "80%", backgroundColor: modalBg }; ``` and assign...

I supposed the types are not properly defined. Which version of the library are you using?

Thanks for clarifying which version you're running. I realized that both the `open()` and `close()` functions do not have JSDoc type defs, which is why their type is `unknown`. Let...

Unfortunately, I am not yet sure how to properly type variables that are exposed via `setContext` but I've opened a ticket with Sveld: https://github.com/carbon-design-system/sveld/issues/103. In the meantime, I've improved the...

Apologies, I had a typo. It should be ```ts import { getContext } from 'svelte'; import type { Context } from 'svelte-simple-modal/types/Modal.svelte'; const { open, close } = getContext('simple-modal') as...

@HasanAboShally The typing should be fixed in v1.5.2 now. The following should not throw an error anymore: ```svelte import { getContext } from 'svelte'; import { bind } from 'svelte-simple-modal';...

100% I was thinking about moving the library entirely into a worker at some point. Unfortunately, there are few challenges: 1. My available free time to work on this 2....