mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
added the staticProp property for the Modal component to work correctly
This commit is contained in:
parent
abfc472c82
commit
4c2aa84310
2 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||
|
|
6
types/DatePicker/DatePicker.d.ts
vendored
6
types/DatePicker/DatePicker.d.ts
vendored
|
@ -70,6 +70,12 @@ export interface DatePickerProps
|
|||
* @default "ccs-" + Math.random().toString(36)
|
||||
*/
|
||||
id?: string;
|
||||
|
||||
/**
|
||||
* Set to true for correct using in Modal
|
||||
* @default false
|
||||
*/
|
||||
staticProp?: boolean;
|
||||
}
|
||||
|
||||
export default class DatePicker extends SvelteComponentTyped<
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue