Browse Source

Bare.contents should be a Var

Benedikt Bartscher 1 year ago
parent
commit
fd5a5b97f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      reflex/components/base/bare.py

+ 1 - 1
reflex/components/base/bare.py

@@ -27,7 +27,7 @@ class Bare(Component):
         if isinstance(contents, Var) and contents._var_data:
             contents = contents.to(str)
         else:
-            contents = str(contents)
+            contents = Var.create(str(contents))
         return cls(contents=contents)  # type: ignore
 
     def _render(self) -> Tag: