plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
21.18k stars 2.04k forks source link

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

Open t-mtzw opened 2 years ago

t-mtzw commented 2 years ago

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.

HWiese1980 commented 1 year ago

Confirmed. How's this not getting any response?

Browser: Chrome; haven't tried others.

luisfgranada commented 1 year ago

Same issue with version 5.0.0

eiriklid commented 11 months ago

Any update on this?

Is there any config that can be set so that a editable column gets a cursor on the first click? The current need for a double click is a pain to explain to users...

andressommerhoff commented 4 months ago

Hi! Any news??