We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7591d1f commit d457f61Copy full SHA for d457f61
src/reactpy/_html.py
@@ -104,7 +104,8 @@ def _fragment(
104
event_handlers: EventHandlerDict,
105
) -> VdomDict:
106
"""An HTML fragment - this element will not appear in the DOM"""
107
- if (attributes and any(a != "key" for a in attributes)) or event_handlers:
+ attributes.pop("key", None)
108
+ if attributes or event_handlers:
109
msg = "Fragments cannot have attributes besides 'key'"
110
raise TypeError(msg)
111
model = VdomDict(tagName="")
0 commit comments