Skip to content

Dropdown menu max height fix #2892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).

## Fixed

- [#2892](https://github.com/plotly/dash/pull/2860) Fix ensures dcc.Dropdown menu maxHeight option works with Datatable. Fixes [#2529](https://github.com/plotly/dash/issues/2529) [#2225](https://github.com/plotly/dash/issues/2225)
- [#2896](https://github.com/plotly/dash/pull/2896) The tabIndex parameter of Div can accept number or string type. Fixes [#2891](https://github.com/plotly/dash/issues/2891)

## [2.17.1] - 2024-06-12
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.dash-dropdown .Select-menu-outer {
z-index: 1000;
max-height: none;
}

.dash-dropdown .Select-menu, .Select-menu-outer {
.dash-dropdown .Select-menu {
max-height: none;
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ def test_ddvi001_fixed_table(dash_duo):
def test_ddvi002_maxHeight(dash_duo):
app = Dash(__name__)
app.layout = Div(
[Dropdown([str(i) for i in range(100)], "1", id="dropdown", maxHeight=800)]
[
DataTable(), # ensure datatable css does not override maxHeight #2529
Dropdown([str(i) for i in range(100)], "1", id="dropdown", maxHeight=800),
]
)

dash_duo.start_server(app)
Expand Down