Skip to content

Commit a88d7cb

Browse files
committed
Fix python sdk execute_script auto_remove
1 parent d31da63 commit a88d7cb

File tree

1 file changed

+1
-1
lines changed
  • sdk/python/src/datastar_py

1 file changed

+1
-1
lines changed

sdk/python/src/datastar_py/sse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def execute_script(
127127
) -> DatastarEvent:
128128
attribute_string = ""
129129
if auto_remove:
130-
attribute_string += " onload='this.remove()'"
130+
attribute_string += " data-effect='el.remove()'"
131131
if attributes:
132132
attribute_string += " " + " ".join(attributes)
133133
script_tag = f"<script{attribute_string}>{script}</script>"

0 commit comments

Comments
 (0)