Open
Description
from nicegui import ui
from ex4nicegui import to_ref, rxui, effect
r_str = to_ref(None)
r_opts = to_ref([])
@effect
def _():
# Adding values in the select component does not trigger execution either.
print(r_opts.value)
@ui.page("/")
def _():
rxui.select(
r_opts, clearable=True, value=r_str, new_value_mode="add-unique"
).classes("min-w-[20ch]")
rxui.label(r_opts)
After typing 'a' in the select and confirming with Enter, the label below should display ['a'], but currently, there is no change.
Activity