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

[BUG] Persistence failed in component type props #2839

Open
CNFeffery opened this issue Apr 26, 2024 · 0 comments
Open

[BUG] Persistence failed in component type props #2839

CNFeffery opened this issue Apr 26, 2024 · 0 comments

Comments

@CNFeffery
Copy link

dash                     2.16.1
dash-core-components     2.0.0
dash-html-components     2.0.0
dash-table               5.0.0

The sample code:

import dash
from dash import html, dcc

app = dash.Dash()

app.layout = html.Div(
    [
        dcc.Checklist(
            [
                {
                    "label": dcc.Input(
                        id=f"input-{value}", persistence=True, style={"width": 100}
                    ),
                    "value": value,
                }
                for value in list("abc")
            ],
            labelStyle={"display": "flex", "align-items": "center"},
        )
    ],
    style={"padding": 50},
)

if __name__ == "__main__":
    app.run(debug=True)

demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant