Skip to content

Add-unique mode of rxui.select not trigger changes in options #193

Open
@CrystalWindSnake

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions