Hi there,
In my layout I have a button right below a multi-value Dropdown. If I select more than 2 options, the button gets “covered” by the options list so that it is not clickable anymore. Do you have any idea how to handle this?
Obviously I could place the button anywhere else, but I would prefer not to do so. Unfortunately, I can’t arrange the options in a vertical manner as shown here, because the dropdown is inside a dbc.Card with a certain width.
An example:
from dash import Dash, html, dcc
import dash_bootstrap_components as dbc
# initialize app
app = Dash(external_stylesheets=[dbc.themes.SLATE])
app.layout = html.Div(
[
dcc.Dropdown(
id='drop',
style={'backgroundColor': '#40454A',
'color': '#40454A',
'height': 50,
'width': 200
},
className="nav-item dropdown",
multi=True,
options=[
{'label': 'option1', 'value': 1},
{'label': 'option2', 'value': 2},
{'label': 'option3', 'value': 3},
{'label': 'option4', 'value': 4},
{'label': 'option5', 'value': 5},
{'label': 'option6', 'value': 6},
],
placeholder='Select option...'
),
dbc.Button(
'just a button',
id='btn',
style={'width': 200}
)
]
)
if __name__ == '__main__':
app.run_server(debug=True, port=8057)