You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
The popover attribute does not have the correct type definition in SvelteKit's typings. According to the MDN documentation, the popover attribute is a boolean attribute when used without a value. When present without a value, it should default to "auto" instead of requiring an explicit value.
Example Code
This code should be valid, but TypeScript reports an error:
popover is not a boolean attribute, as such not allowing popover={true} is correct. We need to adjust code in language tools to infer popover as popover={''}
Describe the bug
Description:
The
popover
attribute does not have the correct type definition in SvelteKit's typings. According to the MDN documentation, thepopover
attribute is a boolean attribute when used without a value. When present without a value, it should default to"auto"
instead of requiring an explicit value.Example Code
This code should be valid, but TypeScript reports an error:
Error Message
Expected Behavior
popover
attribute should allowpopover={true}
as valid, reflecting its boolean HTML attribute behavior.popover
is present without a value, it should default to"auto"
rather than throwing a TypeScript error.Suggested Fix
Update the type definition in SvelteKit’s typings to:
true
, allowingpopover={true}
."auto"
whenpopover
is used without a value.Reproduction
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: