This repository was archived by the owner on Aug 29, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 72
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Entire body scrolls after double-clicking on a dropdown cell. #672
Copy link
Copy link
Closed
Labels
dash-type-bugSomething isn't working as intendedSomething isn't working as intendedregressionWorked in a previous versionWorked in a previous versionsize: 0
Milestone
Description
The following code reproduces the bug:
import dash
import dash_html_components as html
import dash_table
import pandas as pd
from collections import OrderedDict
app = dash.Dash(__name__)
df = pd.DataFrame(OrderedDict([
('climate', ['Sunny', 'Snowy', 'Sunny', 'Rainy']),
('temperature', [13, 43, 50, 30]),
('city', ['NYC', 'Montreal', 'Miami', 'NYC'])
]))
app.layout = html.Div([
dash_table.DataTable(
id='table-dropdown',
data=df.to_dict('records'),
columns=[
{'id': 'climate', 'name': 'climate', 'presentation': 'dropdown', 'editable': True},
{'id': 'temperature', 'name': 'temperature'},
{'id': 'city', 'name': 'city', 'presentation': 'dropdown'},
],
editable=False,
dropdown={
'climate': {
'options': [
{'label': i, 'value': i}
for i in df['climate'].unique()
]
},
'city': {
'options': [
{'label': i, 'value': i}
for i in df['city'].unique()
]
}
}
),
html.Div(id='table-dropdown-container')
])
if __name__ == '__main__':
app.run_server(debug=True)Double-clicking on a cell in the two rightmost columns and then pressing the arrow keys allow for navigation (the highlighted cell changes). However, performing the same behaviour on a dropdown cell causes the arrow-keys navigation to be applied to the entire page instead of changing which cell is selected.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
dash-type-bugSomething isn't working as intendedSomething isn't working as intendedregressionWorked in a previous versionWorked in a previous versionsize: 0