Skip to content

Commit

Permalink
[REF-1425] Always capitalize tag of StatefulComponent (reflex-dev#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
masenf authored Dec 6, 2023
1 parent 94f657c commit e0a1b39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion reflex/components/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,9 @@ def _get_tag_name(cls, component: Component) -> str | None:
code_hash = md5(str(rendered_code).encode("utf-8")).hexdigest()

# Format the tag name including the hash.
return format.format_state_name(f"{component.tag or 'Comp'}_{code_hash}")
return format.format_state_name(
f"{component.tag or 'Comp'}_{code_hash}"
).capitalize()

@classmethod
def _render_stateful_code(
Expand Down

0 comments on commit e0a1b39

Please sign in to comment.