From ae3dfc64125b45af21dd7f97b92a366955ad15bd Mon Sep 17 00:00:00 2001 From: Swaraj Baral Date: Thu, 4 Apr 2024 21:54:48 +0530 Subject: [PATCH] Added custom_attrs to the list of trigger props (#2980) --- reflex/components/radix/themes/components/select.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/reflex/components/radix/themes/components/select.py b/reflex/components/radix/themes/components/select.py index 77d3595f2..f63247f1e 100644 --- a/reflex/components/radix/themes/components/select.py +++ b/reflex/components/radix/themes/components/select.py @@ -198,6 +198,15 @@ class HighLevelSelect(SelectRoot): Returns: The select component. """ + trigger_prop_list = [ + "placeholder", + "variant", + "radius", + "width", + "flex_shrink", + "custom_attrs", + ] + content_props = { prop: props.pop(prop) for prop in ["high_contrast", "position"] @@ -205,9 +214,7 @@ class HighLevelSelect(SelectRoot): } trigger_props = { - prop: props.pop(prop) - for prop in ["placeholder", "variant", "radius", "width", "flex_shrink"] - if prop in props + prop: props.pop(prop) for prop in trigger_prop_list if prop in props } color_scheme = props.pop("color_scheme", None)