When passing null as <Tooltip opened={null}> (or omitting it), it's in automatic mode, when passing bool, it's in managed mode. Hovever, it's useful to be able to conditionally switch between automatic and managed mode (e.g. on first visit, the tooltip is permanently shown in managed mode, then switch to automatic).
I think you get the same behaviour by setting the value to undefined, which should raise any TS type issues.
I've added better mention of this behaviour in the docs, thank you!
What package has an issue
@svelteuidev/core
Tooltip
componentDescription
When passing
null
as<Tooltip opened={null}>
(or omitting it), it's in automatic mode, when passingbool
, it's in managed mode. Hovever, it's useful to be able to conditionally switch between automatic and managed mode (e.g. on first visit, the tooltip is permanently shown in managed mode, then switch to automatic).The above behavior works, but the TS type checker complains about null value, also it's undocumented.