Closed AiroPi closed 2 years ago
Something similar for me too. The selected values is an empty list during initialization and if I'm not wrong it don't get updated if we don't edit the Select and just try to get those values. So maybe, we can just manually append default values into the list.
I also made a PR (#7286) which fixed the issue for me.
Summary
When you create a UI.Select, with default values, and try to retrieve the selected values with Select.values, the list is empty.
Reproduction Steps
When creating a Select list with a validation button :
Minimal Reproducible Code
No response
Expected Results
self.children[0].values
should show the default selected values.Actual Results
self.children[0].values
show an empty list.Intents
all
System Information
Checklist
Additional Context
No response