Callback to cell not fired second time selected cells
See original GitHub issueI have a callback function of the selected cells properties. When the user clicks ones of the cells the callback is fired. However the second time the user clicks the same cell, the callback is not fired. Is this correct behavior or a bug?
@app.callback( Output('test', 'children'), [ Input('table', 'selected_cells'), ]) def test(selected_cells): return 'test_done'
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Unselect active_cell in dash datatable (python) - Stack Overflow
Therefore, my callback is not triggered and nothing happens. I would like to deselect that cell the second time the user clicks it....
Read more >Pushbutton callback function reacts only after second press ...
Executes when selected cell(s) is changed in table_pathdata. ... Switch code follows which is working fine (on second button press).
Read more >Run a macro when certain cells change in Excel - Office
To create the Visual Basic macro: Right-click the Sheet1 tab and then click View Code.
Read more >Part 3. Basic Callbacks | Dash for Python Documentation | Plotly
In this example, changing text in the dcc. Input boxes won't fire the callback, but clicking on the button will. The current values...
Read more >Cell Editing - Angular Data Grid
An editable callback is added to the Athlete and Age columns to control which cells are editable based on the selected Year. A...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had a similar issue. I wrote callbacks to clear the active_cell and selected_cells of the table for my code.
You might want to hook this to the modal component.
Our use case is basically the same as @Marc-Andre-Rivet. We have callback attached to
active_cell
which opens a dialog (which can be closed by the user). In order to re-open the dialog for a given cell, the user has to click another cell, then click the old cell again. Adding ann_clicks
andn_clicks_timestamp
attribute would be very helpful!