Skip to content

Commit 8fc408d

Browse files
authored
Python SDK: Typo in data-ref attribute helper (#994)
* Typo in data-ref attribute helper * data-on-signal-patch isn't pro anymore
1 parent 7ebfc2b commit 8fc408d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/datastar_py/attributes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def on_raf(self, expression: str) -> OnRafAttr:
226226
def on_signal_patch(
227227
self, expression: str, include: str | None = None, exclude: str | None = None
228228
) -> OnSignalPatchAttr:
229-
"""(PRO) Execute an expression when a signal patch taxes plase."""
229+
"""Execute an expression when a signal patch taxes plase."""
230230
attr = OnSignalPatchAttr(value=expression, alias=self._alias)
231231
if include or exclude:
232232
attr.filter(include, exclude)
@@ -243,7 +243,7 @@ def persist(self) -> PersistAttr:
243243

244244
def ref(self, signal_name: str) -> BaseAttr:
245245
"""Create a signal which references the element on which the attribute is placed."""
246-
return BaseAttr("red", value=signal_name, alias=self._alias)
246+
return BaseAttr("ref", value=signal_name, alias=self._alias)
247247

248248
def replace_url(self, url_expression: str) -> BaseAttr:
249249
"""(PRO) Replace the URL in the browser without replacing the page."""

0 commit comments

Comments
 (0)