plotly / plotly/dash

Since version 4.10.0 of Dash editable DataTable, cannot place the cursor in a cell by double-clicking

Open
#2,078 4 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug dash-data-table P3
Dominant language
Python
Stars
24.4k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
13

Description

Describe your context

dash                 1.15.0 
dash-core-components 1.11.0 
dash-html-components 1.1.0  
dash-renderer        1.7.0  
dash-table           4.10.0 

Describe the bug

In version 4.9.0 of the Dash editable DataTable, the cursor can be placed in a cell by double-clicking with the mouse.

https://user-images.githubusercontent.com/71798780/172095897-b8e237ef-c30b-4284-9242-d37993d2f9df.mp4

However, since version 4.10.0, the cursor cannot be placed.

https://user-images.githubusercontent.com/71798780/172095929-711068aa-7424-4df9-b079-5bcff03228f2.mp4

Code example

# -*- coding: utf-8 -*-
import dash
import dash_table
import dash_html_components as html

app = dash.Dash(__name__)

app.layout = html.Div([
    html.P(f'dash-table == {dash_table.__version__}'),
    dash_table.DataTable(
        id='table',
        columns=(
            [{'id': p, 'name': p} for p in ['Column']]
        ),
        data=[
            dict(Model=i, **{param: 1111 for param in ['Column']})
            for i in range(1, 3)
        ],
        style_header={
            "backgroundColor": "black",
            "color": "white",
        },
        style_table={
            'width':'10%',
        },
        editable=True
    )
])

if __name__ == "__main__":
    app.run_server(debug=True)

Context of version 4.9.0

dash                 1.14.0 
dash-core-components 1.10.2 
dash-html-components 1.0.3  
dash-renderer        1.6.0  
dash-table           4.9.0  

Expected behaviour

In the latest Dash editable DataTable, the cursor can be placed in a cell by double-clicking the mouse, as in version 4.9.0.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided Python DataTable example with dash-table 4.9.0 and 4.10.0, then compare the editable-cell double-click behavior. Trace the DataTable interaction entry point responsible for placing the cursor and verify that double-clicking an editable cell restores the 4.9.0 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.