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 d31da63 commit a88d7cbCopy full SHA for a88d7cb
sdk/python/src/datastar_py/sse.py
@@ -127,7 +127,7 @@ def execute_script(
127
) -> DatastarEvent:
128
attribute_string = ""
129
if auto_remove:
130
- attribute_string += " onload='this.remove()'"
+ attribute_string += " data-effect='el.remove()'"
131
if attributes:
132
attribute_string += " " + " ".join(attributes)
133
script_tag = f"<script{attribute_string}>{script}</script>"
0 commit comments