Skip to content

Commit

Permalink
Remove width prop from rx.select
Browse files Browse the repository at this point in the history
  • Loading branch information
picklelo committed Mar 11, 2024
1 parent bf297e2 commit 217345f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 1 addition & 4 deletions reflex/components/radix/themes/components/select.py
Expand Up @@ -181,9 +181,6 @@ class HighLevelSelect(SelectRoot):
# The radius of the select.
radius: Var[LiteralRadius]

# The width of the select.
width: Var[str]

@classmethod
def create(cls, items: Union[List[str], Var[List[str]]], **props) -> Component:
"""Create a select component.
Expand All @@ -201,7 +198,7 @@ def create(cls, items: Union[List[str], Var[List[str]]], **props) -> Component:

trigger_props = {
prop: props.pop(prop)
for prop in ["placeholder", "variant", "radius", "width"]
for prop in ["placeholder", "variant", "radius"]
if prop in props
}

Expand Down
4 changes: 0 additions & 4 deletions reflex/components/radix/themes/components/select.pyi
Expand Up @@ -863,7 +863,6 @@ class HighLevelSelect(SelectRoot):
Literal["none", "small", "medium", "large", "full"],
]
] = None,
width: Optional[Union[Var[str], str]] = None,
size: Optional[
Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
] = None,
Expand Down Expand Up @@ -944,7 +943,6 @@ class HighLevelSelect(SelectRoot):
high_contrast: Whether to render the select with higher contrast color against background.
variant: The variant of the select.
radius: The radius of the select.
width: The width of the select.
size: The size of the select: "1" | "2" | "3"
default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select.
value: The controlled value of the select. Should be used in conjunction with on_change.
Expand Down Expand Up @@ -1056,7 +1054,6 @@ class Select(ComponentNamespace):
Literal["none", "small", "medium", "large", "full"],
]
] = None,
width: Optional[Union[Var[str], str]] = None,
size: Optional[
Union[Var[Literal["1", "2", "3"]], Literal["1", "2", "3"]]
] = None,
Expand Down Expand Up @@ -1137,7 +1134,6 @@ class Select(ComponentNamespace):
high_contrast: Whether to render the select with higher contrast color against background.
variant: The variant of the select.
radius: The radius of the select.
width: The width of the select.
size: The size of the select: "1" | "2" | "3"
default_value: The value of the select when initially rendered. Use when you do not need to control the state of the select.
value: The controlled value of the select. Should be used in conjunction with on_change.
Expand Down

0 comments on commit 217345f

Please sign in to comment.