You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multi-select does not work, neither with the example listed on document's selector section, nor with the example code I copy and run on local machine.
update::
I find the multselect.py and select.py both in the reflex component.
The example given in the document, use rx.select only, even with multiselect example.
When I check the select.py file, the props in Select Class does not have is_multi, close_menu_on_select, etc. Which can be found in multiselect.py file.
But when I use rx.multi_select(), the Error message will be
11, in
lambda e0: [Var.create_safe(f"{e0}.map(e => e.value)", is_local=True)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/joeyjiang/opt/anaconda3/envs/py311/lib/python3.11/site-packages/reflex/vars.py", line 238, in bool
raise TypeError(
TypeError: Cannot convert Var 'true' to bool for use with if, and, or, and not. Instead use rx.cond and bitwise operators & (and), | (or), ~ (invert).
And I guess, the reflex mixed the select.py and multiselect.py when create Select instance (because in both select.py and multiselect.py file, the class name are the same Select).
I dont know how to fix this.
The text was updated successfully, but these errors were encountered:
Multi-select does not work, neither with the example listed on document's
selector
section, nor with the example code I copy and run on local machine.update::
I find the multselect.py and select.py both in the reflex component.
The example given in the document, use
rx.select
only, even with multiselect example.When I check the select.py file, the props in Select Class does not have
is_multi
,close_menu_on_select
, etc. Which can be found in multiselect.py file.But when I use rx.multi_select(), the Error message will be
11, in
lambda e0: [Var.create_safe(f"{e0}.map(e => e.value)", is_local=True)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/joeyjiang/opt/anaconda3/envs/py311/lib/python3.11/site-packages/reflex/vars.py", line 238, in bool
raise TypeError(
TypeError: Cannot convert Var 'true' to bool for use with
if
,and
,or
, andnot
. Instead userx.cond
and bitwise operators&
(and),|
(or),~
(invert).And I guess, the reflex mixed the select.py and multiselect.py when create Select instance (because in both select.py and multiselect.py file, the class name are the same
Select
).I dont know how to fix this.
The text was updated successfully, but these errors were encountered: