-
Notifications
You must be signed in to change notification settings - Fork 223
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
dbc.themes.FLATLY makes dash_table presentation dropdown not displaying the .Select-menu-outer css ( display:none ) #1052
Comments
Hi @kyoshizzz |
here is the code i think it happens around 1 month ago,
|
Hi @kyoshizzz, thanks for the example and sorry for the slow reply. I think the issue is a clash between Bootstrap defined styles for the In any case, I think I was able to fix the issue by adding the following line to the css=[{"selector": ".dropdown", "rule": "position: static"}] Please let me know if this resolves your issue. Full example based on yours, but simplified a bit import dash_bootstrap_components as dbc
from dash import Dash, dash_table
app = Dash(external_stylesheets=[dbc.themes.FLATLY])
data = [
{"climate": "Sunny", "temperature": 13, "city": "NYC"},
{"climate": "Snowy", "temperature": 43, "city": "Montreal"},
{"climate": "Sunny", "temperature": 50, "city": "Miami"},
{"climate": "Rainy", "temperature": 30, "city": "NYC"},
]
climates = ["Snowy", "Sunny", "Rainy"]
cities = ["Miami", "Montreal", "NYC"]
app.layout = dbc.Container(
dash_table.DataTable(
id="table-dropdown",
data=data,
columns=[
{"id": "climate", "name": "climate", "presentation": "dropdown"},
{"id": "temperature", "name": "temperature"},
{"id": "city", "name": "city", "presentation": "dropdown"},
],
editable=True,
dropdown={
"climate": {
"options": [
{"label": climate, "value": climate} for climate in climates
]
},
"city": {"options": [{"label": city, "value": city} for city in cities]},
},
css=[{"selector": ".dropdown", "rule": "position: static"}],
),
className="p-3",
)
if __name__ == "__main__":
app.run_server(debug=True) |
2.18.2
1.6.0
dash_table 5.0.0
i think there is something wrong with dbc.themes.FLATLY recently,
my dash_table presentation dropdown
className .Select-menu-outer css
suddenly becomedisplay:none
,when i exclude dbc.themes.FLATLY on
Dash(__name__,external_stylesheets=[dbc.themes.FLATLY]
it works just fineThe text was updated successfully, but these errors were encountered: