Skip to content
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

DropdownMenuItem toggle prop has no effect #554

Closed
tcbegley opened this issue Apr 16, 2021 · 0 comments · Fixed by #555
Closed

DropdownMenuItem toggle prop has no effect #554

tcbegley opened this issue Apr 16, 2021 · 0 comments · Fixed by #555

Comments

@tcbegley
Copy link
Collaborator

The toggle prop of DropdownMenuItem should control whether the parent DropdownMenu dismisses on click, but it appears to have no effect.

Demonstrative example:

import dash
import dash_bootstrap_components as dbc

app = dash.Dash(external_stylesheets=[dbc.themes.BOOTSTRAP])

app.layout = dbc.Container(
    dbc.DropdownMenu(
        [dbc.DropdownMenuItem(f"Item {i + 1}", toggle=False) for i in range(3)],
        label="Menu",
    ),
    className="p-5",
)

if __name__ == "__main__":
    app.run_server(debug=True)
This was referenced May 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant