Skip to content

Commit c23031d

Browse files
masenfadhami3310
andauthored
Add value and default_value to rx.el.select (#5079)
* Add value and default_value to rx.el.select * hashes --------- Co-authored-by: Khaleel Al-Adhami <[email protected]>
1 parent be23309 commit c23031d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pyi_hashes.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"reflex/components/el/element.pyi": "06ac2213b062119323291fa66a1ac19e",
3030
"reflex/components/el/elements/__init__.pyi": "280ed457675f3720e34b560a3f617739",
3131
"reflex/components/el/elements/base.pyi": "6e533348b5e1a88cf62fbb5a38dbd795",
32-
"reflex/components/el/elements/forms.pyi": "dca85624142e170709dbecdbffdff4ee",
32+
"reflex/components/el/elements/forms.pyi": "e05f3ed762ea47f37f32550f8b9105e5",
3333
"reflex/components/el/elements/inline.pyi": "33d9d860e75dd8c4769825127ed363bb",
3434
"reflex/components/el/elements/media.pyi": "addd6872281d65d44a484358b895432f",
3535
"reflex/components/el/elements/metadata.pyi": "974a86d9f0662f6fc15a5bb4b3a87862",

reflex/components/el/elements/forms.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,12 @@ class Select(BaseHTML):
572572
# Fired when the select value changes
573573
on_change: EventHandler[input_event]
574574

575+
# The controlled value of the select, read only unless used with on_change
576+
value: Var[str]
577+
578+
# The default value of the select when initially rendered
579+
default_value: Var[str]
580+
575581

576582
AUTO_HEIGHT_JS = """
577583
const autoHeightOnInput = (e, is_enabled) => {

0 commit comments

Comments
 (0)