Do not pass static down to underlying HTML elements
Since it was not explicitly exported it appeared in $$restProps. Harmless, but clutters up the HTML.
This commit is contained in:
@@ -46,6 +46,8 @@
|
|||||||
export let features: Features = Features.None;
|
export let features: Features = Features.None;
|
||||||
// The static and unmount props are only used in conjunction with the render strategies
|
// The static and unmount props are only used in conjunction with the render strategies
|
||||||
export let unmount = true;
|
export let unmount = true;
|
||||||
|
let static_ = false;
|
||||||
|
export { static_ as static };
|
||||||
|
|
||||||
let classProp: ((props: TSlotProps) => string) | string | undefined =
|
let classProp: ((props: TSlotProps) => string) | string | undefined =
|
||||||
undefined;
|
undefined;
|
||||||
@@ -72,11 +74,11 @@
|
|||||||
|
|
||||||
$: show =
|
$: show =
|
||||||
visible ||
|
visible ||
|
||||||
(features & Features.Static && $$props.static) ||
|
(features & Features.Static && static_) ||
|
||||||
!(features & Features.RenderStrategy && unmount);
|
!(features & Features.RenderStrategy && unmount);
|
||||||
$: hidden =
|
$: hidden =
|
||||||
!visible &&
|
!visible &&
|
||||||
!(features & Features.Static && $$props.static) &&
|
!(features & Features.Static && static_) &&
|
||||||
features & Features.RenderStrategy &&
|
features & Features.RenderStrategy &&
|
||||||
!unmount;
|
!unmount;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user