소스 검색

Bare.contents should be a Var

Benedikt Bartscher 1 년 전
부모
커밋
fd5a5b97f2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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: