rx.list Dont set/hardcode list_style_position css prop (#3695)

This commit is contained in:
Elijah Ahianyo 2024-07-22 17:56:34 +00:00 committed by GitHub
parent 8b45d289bd
commit decdc857be
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -70,7 +70,6 @@ class BaseList(Component):
children = [Foreach.create(items, ListItem.create)]
else:
children = [ListItem.create(item) for item in items] # type: ignore
props["list_style_position"] = "outside"
props["direction"] = "column"
style = props.setdefault("style", {})
style["list_style_type"] = list_style_type
@ -86,7 +85,6 @@ class BaseList(Component):
"""
return {
"direction": "column",
"list_style_position": "inside",
}