fixed issue with hypens (#2450)
This commit is contained in:
parent
aad009e5df
commit
069892d8ee
@ -64,7 +64,7 @@ class Tag(Base):
|
||||
"""
|
||||
self.props.update(
|
||||
{
|
||||
format.to_camel_case(name): prop
|
||||
format.to_camel_case(name, allow_hyphens=True): prop
|
||||
if types._isinstance(prop, Union[EventChain, dict])
|
||||
else Var.create(prop)
|
||||
for name, prop in kwargs.items()
|
||||
|
@ -10,6 +10,7 @@ from reflex.vars import BaseVar, Var
|
||||
"props,test_props",
|
||||
[
|
||||
({}, []),
|
||||
({"key-hypen": 1}, ["key-hypen={1}"]),
|
||||
({"key": 1}, ["key={1}"]),
|
||||
({"key": "value"}, ["key={`value`}"]),
|
||||
({"key": True, "key2": "value2"}, ["key={true}", "key2={`value2`}"]),
|
||||
|
Loading…
Reference in New Issue
Block a user