File tree Expand file tree Collapse file tree 4 files changed +21
-3
lines changed
tests/integration/long_callback Expand file tree Collapse file tree 4 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ All notable changes to `dash` will be documented in this file.
3
3
This project adheres to [Semantic Versioning](https://semver.org/).
4
4
5
5
6
+ ## [2.12.1] - 2023-08-16
7
+
8
+ ## Fixed
9
+
10
+ - [#2625](https://github.com/plotly/dash/pull/2625) Fix background callbacks without cancel arguments failing setup, fix [#2624](https://github.com/plotly/dash/issues/2624)
11
+
6
12
## [2.12.0] - 2023-08-14
7
13
8
14
## Fixed
Original file line number Diff line number Diff line change @@ -1321,8 +1321,8 @@ def _setup_server(self):
1321
1321
long = callback .get ("long" )
1322
1322
if not long :
1323
1323
continue
1324
- cancel = long . pop ( "cancel_inputs" )
1325
- if cancel :
1324
+ if "cancel_inputs" in long :
1325
+ cancel = long . pop ( "cancel_inputs" )
1326
1326
for c in cancel :
1327
1327
cancels [c ] = long .get ("manager" )
1328
1328
Original file line number Diff line number Diff line change 1
- __version__ = "2.12.0 "
1
+ __version__ = "2.12.1 "
Original file line number Diff line number Diff line change 34
34
html .Button ("cancel1" , id = "cancel1" ),
35
35
html .Div ("idle" , id = "progress1" ),
36
36
html .Div ("initial" , id = "output1" ),
37
+ html .Div ("no-cancel-btn" , id = "no-cancel-btn" ),
38
+ html .Div ("no-cancel" , id = "no-cancel-output" ),
37
39
]
38
40
),
39
41
)
51
53
)
52
54
53
55
56
+ @app .callback (
57
+ Output ("no-cancel-output" , "children" ),
58
+ Input ("no-cancel-btn" , "n_clicks" ),
59
+ background = True ,
60
+ prevent_initial_call = True ,
61
+ )
62
+ def on_click_no_cancel (_ ):
63
+ return "Not Canceled"
64
+
65
+
54
66
@app .callback (
55
67
Output ("output1" , "children" ),
56
68
Input ("start1" , "n_clicks" ),
You can’t perform that action at this time.
0 commit comments