-
Notifications
You must be signed in to change notification settings - Fork 325
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
Passing value to table with 'select' event leads to trigger-loop #2069
Comments
Thanks for reporting @aranvir! |
marek-mihok
added a commit
that referenced
this issue
Jul 18, 2023
marek-mihok
added a commit
that referenced
this issue
Jul 18, 2023
marek-mihok
added a commit
that referenced
this issue
Jul 19, 2023
5 tasks
marek-mihok
added a commit
that referenced
this issue
Jul 19, 2023
marek-mihok
added a commit
that referenced
this issue
Aug 15, 2023
marek-mihok
added a commit
that referenced
this issue
Aug 15, 2023
marek-mihok
added a commit
that referenced
this issue
Aug 16, 2023
mturoci
added a commit
that referenced
this issue
Aug 16, 2023
mturoci
pushed a commit
that referenced
this issue
Aug 17, 2023
mturoci
pushed a commit
that referenced
this issue
Aug 17, 2023
mturoci
pushed a commit
that referenced
this issue
Aug 17, 2023
mturoci
pushed a commit
that referenced
this issue
Aug 17, 2023
mturoci
pushed a commit
that referenced
this issue
Aug 17, 2023
mturoci
pushed a commit
that referenced
this issue
Aug 17, 2023
mturoci
added a commit
that referenced
this issue
Aug 17, 2023
mturoci
added a commit
that referenced
this issue
Aug 17, 2023
… (#2082) Co-authored-by: Martin Turoci <martin.turoci@h2o.ai>
marek-mihok
added a commit
that referenced
this issue
Jan 15, 2024
… (#2082) Co-authored-by: Martin Turoci <martin.turoci@h2o.ai>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Wave SDK Version, OS
h2o-wave 0.26.1, Windows 10
Actual behavior
If a table has
single=True
andevents=['select']
, passing the selected value to the value argument (e.g.,value=q.args.table[0]
) causes the page to enter a loop of infinite refresh.Expected behavior
Passing the current row value only fills the checkbox instead of triggering the
select
event (e.g., same behaviour as when there is no event assigned). The event should be triggered on mouse-click, not on having a default/past value passed.My use case is: A table provides an overview of data. Clicking a row adds a new tile showing the complete data in case the user wants to see more details. For extra clarity, I'd like the table row to stay selected, but of course it works just as fine when the row is not selected (ergo, I just skip passing anything to
value
). I still thought I raised this issue in case this is indeed NOT the behaviour you wanted for the table.Steps To Reproduce
The text was updated successfully, but these errors were encountered: