Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CrystalWindSnake opened this issue May 20, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@CrystalWindSnake
Copy link
Owner

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.

@CrystalWindSnake CrystalWindSnake added the bug Something isn't working label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant