plotly / plotly/dash

DataTable dropdown arrow overlaps cell content when clearable is False

Open
#1,913 0 comments 1 reaction 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

In Dash 2.1.0 when using dropdowns in DataTable and setting clearable to False, the dropdown arrow overlaps the cell content.

Minimal example:

from dash import Dash, dash_table, html

app = Dash(__name__)

app.layout = html.Div(
    dash_table.DataTable(
        id="test",
        data=[
            {"greeting": "hello", "bool_value": True},
            {"greeting": "world", "bool_value": False},
        ],
        columns=[
            {"name": "greeting", "id": "greeting"},
            {"name": "bool_value", "id": "bool_value", "editable": True, "presentation": "dropdown"},
        ],
        dropdown={
            "bool_value": {
                "options": [{"label": "false", "value": False}, {"label": "true", "value": True}],
                "clearable": False,
            }
        }
    )
)

app.run_server(host="0.0.0.0", port=8000)

image

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 minimal Dash example with a DataTable dropdown whose clearable option is false, then inspect the DataTable dropdown rendering and styles. Done means the arrow no longer overlaps the cell content in this configuration while the dropdown remains usable.

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.