rx.list
Dont set/hardcode list_style_position
css prop (#3695)
This commit is contained in:
parent
8b45d289bd
commit
decdc857be
@ -70,7 +70,6 @@ class BaseList(Component):
|
|||||||
children = [Foreach.create(items, ListItem.create)]
|
children = [Foreach.create(items, ListItem.create)]
|
||||||
else:
|
else:
|
||||||
children = [ListItem.create(item) for item in items] # type: ignore
|
children = [ListItem.create(item) for item in items] # type: ignore
|
||||||
props["list_style_position"] = "outside"
|
|
||||||
props["direction"] = "column"
|
props["direction"] = "column"
|
||||||
style = props.setdefault("style", {})
|
style = props.setdefault("style", {})
|
||||||
style["list_style_type"] = list_style_type
|
style["list_style_type"] = list_style_type
|
||||||
@ -86,7 +85,6 @@ class BaseList(Component):
|
|||||||
"""
|
"""
|
||||||
return {
|
return {
|
||||||
"direction": "column",
|
"direction": "column",
|
||||||
"list_style_position": "inside",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user