Skip to content

Commit

Permalink
refine camel to dash conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
rmorshea committed Nov 23, 2022
1 parent 8a00c65 commit 49b53a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/idom/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ def _vdom_attr_to_html_str(key: str, value: Any) -> tuple[str, str]:
elif key.startswith("data") or key.startswith("aria"):
# Handle data-* attribute names
key = _CAMEL_CASE_SUB_PATTERN.sub("-", key)
else:
key = _CAMEL_TO_DASH_CASE_HTML_ATTRS.get(key, key)
elif key in _CAMEL_TO_DASH_CASE_HTML_ATTRS:
key = _CAMEL_TO_DASH_CASE_HTML_ATTRS[key]

assert not callable(
value
Expand Down

0 comments on commit 49b53a6

Please sign in to comment.