Skip to content

Commit

Permalink
Do not pass static down to underlying HTML elements
Browse files Browse the repository at this point in the history
Since it was not explicitly exported it appeared in $$restProps. Harmless, but clutters up the HTML.
  • Loading branch information
rgossiaux committed Mar 6, 2022
1 parent 0963905 commit 3014990
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/utils/Render.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
export let features: Features = Features.None;
// The static and unmount props are only used in conjunction with the render strategies
export let unmount = true;
let static_ = false;
export { static_ as static };
let classProp: ((props: TSlotProps) => string) | string | undefined =
undefined;
Expand All @@ -72,11 +74,11 @@
$: show =
visible ||
(features & Features.Static && $$props.static) ||
(features & Features.Static && static_) ||
!(features & Features.RenderStrategy && unmount);
$: hidden =
!visible &&
!(features & Features.Static && $$props.static) &&
!(features & Features.Static && static_) &&
features & Features.RenderStrategy &&
!unmount;
Expand Down

1 comment on commit 3014990

@vercel
Copy link

@vercel vercel bot commented on 3014990 Mar 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.