[READ-ONLY] Mirror of https://github.com/probablykasper/modal-svelte.
svelte
0

Configure Feed

Select the types of activity you want to include in your feed.

Fix `noCloseIcon` property

Kasper (Mar 7, 2023, 10:25 AM +0100) 9d376361 5c007fc0

+5 -2
+3
CHANGELOG.md
··· 1 1 # Changelog 2 2 3 + ## Next 4 + - Fix `noCloseIcon` property 5 + 3 6 ## 1.0.2 - 2022 Mar 7 4 7 - Improve text selection in modal 5 8 - Change spacing units from `rem` to `px`
+2 -2
src/lib/Modal.svelte
··· 13 13 export let onCancel: () => void 14 14 export let noEscapeHandling = false 15 15 export let form: (() => void) | undefined = undefined 16 - export let noCloseIcon = true 16 + export let noCloseIcon = false 17 17 $: tag = form === undefined ? 'div' : 'form' 18 18 export let title: string | null = null 19 19 ··· 137 137 clickable = false 138 138 }} 139 139 > 140 - {#if noCloseIcon} 140 + {#if !noCloseIcon} 141 141 <!-- svelte-ignore a11y-click-events-have-key-events --> 142 142 <svg 143 143 on:click={() => onCancel()}