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

Can't make ui.toggle clearable #1644

Closed
falkoschindler opened this issue Sep 18, 2023 · 0 comments
Closed

Can't make ui.toggle clearable #1644

falkoschindler opened this issue Sep 18, 2023 · 0 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@falkoschindler
Copy link
Contributor

Description

In #1550 @superlou tried to reset a ui.toggle to None. What can be usually done with the "clearable" prop, doesn't work at the moment:

ui.toggle(['Pass', 'Fail']).props('clearable')

When clicking on a selected option, Python raises a TypeError in toggle.py:

TypeError: list indices must be integers or slices, not NoneType
@falkoschindler falkoschindler added this to the 1.3.14 milestone Sep 18, 2023
@falkoschindler falkoschindler self-assigned this Sep 18, 2023
@falkoschindler falkoschindler added the bug Something isn't working label Sep 18, 2023
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