You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defining the cancel behaviour of a Dash bootstrap component button within the callback signature I am greeted with the error
dash.exceptions.WildcardInLongCallback: long callbacks does not support dependencies with
pattern-matching ids
Received: <Input `{"index":["MATCH"],"type":"cancel-button"}.n_clicks`>
Using pattern matching IDs in the running kwarg for the callback signature works perfectly fine but the cancel kwarg does not.
Expected behavior
I expected the cancel behaviour to work as with buttons without pattern matching IDs after coming across what I thought were the fixes here.
dash.exceptions.WildcardInLongCallback: long callbacks does not support dependencies with
pattern-matching ids
Received: <Input `{"index":["MATCH"],"type":"cancel_button_id"}.n_clicks`>
However if I comment out the cancel kwarg, the dashboard runs, the cancel buttons just don't function how I want them to.
The text was updated successfully, but these errors were encountered:
gvwilson
changed the title
[BUG] Pattern Maching ID not working in Dash callback cancel
Pattern Maching ID not working in Dash callback cancelAug 26, 2024
Environment:
Describe the bug
When defining the
cancel
behaviour of a Dash bootstrap component button within the callback signature I am greeted with the errorUsing pattern matching IDs in the
running
kwarg for the callback signature works perfectly fine but thecancel
kwarg does not.Expected behavior
I expected the cancel behaviour to work as with buttons without pattern matching IDs after coming across what I thought were the fixes here.
Example
returns the following error:
However if I comment out the
cancel
kwarg, the dashboard runs, the cancel buttons just don't function how I want them to.The text was updated successfully, but these errors were encountered: