Quantcast
Channel: Active questions tagged svelte - Stack Overflow
Viewing all articles
Browse latest Browse all 1541

Sveltestrap's modal header is not rendered correctly

$
0
0

i'm a svelte beginner.

I try to build a simple modal with Sveltestrap, but my modal is not rendered correctly. It always showing following text within modal instead of header:

(node, ...args) => { var previous_component_function = dev_current_component_function; set_dev_current_component_function(component2); try { return fn(node, ...args); } finally { set_dev_current_component_function(previous_component_function); } }

My Code looks like that:

<script lang="ts">    import { Modal, ModalFooter, Button } from "@sveltestrap/sveltestrap";    let {open = $bindable()}:{        open: boolean    } = $props();    const toggle = () => (open = !open);</script><Modal body header="Demo Modal" isOpen={open} {toggle}><ModalFooter><Button color="primary" on:click={toggle}>Hinzufügen</Button><Button color="secondary" on:click={toggle}>Abbrechen</Button></ModalFooter></Modal>

Any help would be appreciate.

regards


Viewing all articles
Browse latest Browse all 1541

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>