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

Document title Updating... broken? #101

Closed
etpinard opened this issue May 5, 2021 · 2 comments · Fixed by #102
Closed

Document title Updating... broken? #101

etpinard opened this issue May 5, 2021 · 2 comments · Fixed by #102

Comments

@etpinard
Copy link
Collaborator

etpinard commented May 5, 2021

Consider

# main.jl
using Dash, DashHtmlComponents

external_stylesheets = ["https://codepen.io/chriddyp/pen/bWLwgP.css"]

app = dash(;external_stylesheets)

app.layout = html_div() do
    html_button("CLICK ME"; id="btn"),
    html_div(id="output")
end

callback!(app,
          Output("output", "children"),
          Input("btn", "n_clicks")) do n_clicks
    if isnothing(n_clicks)
        return ""
    end
    sleep(5)
    return "Number of clicks: $n_clicks"
end

run_server(app, "0.0.0.0", debug=true)

and the following envs:

# base
  [1b08a953] Dash v0.1.3
  [1b08a953] DashHtmlComponents v1.1.3

and

# dev
  [1b08a953] Dash v0.1.4 `https://github.com/plotly/Dash.jl.git#dev`
  [1b08a953] DashHtmlComponents v1.1.3

Then julia --project=base main.jl gives:

Peek 2021-05-05 12-02

but with julia --project=dev main.jl we get

Peek 2021-05-05 12-04

@etpinard
Copy link
Collaborator Author

etpinard commented May 5, 2021

#99 seems to have caused the problem.

Things worked fine on 7b6c06b off the dev branch.

@alexcjohnson
Copy link
Contributor

Nice catch @etpinard ! We probably need an update here due to plotly/dash#1315

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

Successfully merging a pull request may close this issue.

2 participants