question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Callback to cell not fired second time selected cells

See original GitHub issue

I 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:open
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
vivekvs1commented, Nov 12, 2019

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.

1reaction
adm78commented, Nov 7, 2019

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 an n_clicks and n_clicks_timestamp attribute would be very helpful!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found