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

Missing comma in dash @app.callback #298

Closed
janosh opened this issue Nov 28, 2022 · 1 comment · Fixed by #299
Closed

Missing comma in dash @app.callback #298

janosh opened this issue Nov 28, 2022 · 1 comment · Fixed by #299
Labels

Comments

@janosh
Copy link
Member

janosh commented Nov 28, 2022

[Output(self.id(), "data"), Output(self.id("elements"), "data")][
Input(self.id("element-selector"), "value")
],

Should be

[Output(self.id(), "data"), Output(self.id("elements"), "data")],
[Input(self.id("element-selector"), "value")],
@janosh
Copy link
Member Author

janosh commented Nov 28, 2022

Another worthwhile refactor might be to pass components to dash callbacks directly instead of their IDs.

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

Successfully merging a pull request may close this issue.

1 participant