added the staticProp property for the Modal component to work correctly

This commit is contained in:
Leonid 2021-08-22 10:59:05 +03:00
commit 4c2aa84310
2 changed files with 10 additions and 0 deletions

View file

@ -56,6 +56,9 @@
/** Set an id for the date picker element */
export let id = "ccs-" + Math.random().toString(36);
/** Set to `true` to use in component Modal */
export let staticProp = false;
import {
createEventDispatcher,
setContext,
@ -138,6 +141,7 @@
maxDate,
minDate,
mode: $mode,
static: staticProp,
},
base: inputRef,
input: inputRefTo,