plotly / dash

Data Apps & Dashboards for Python. No JavaScript Required.
https://plotly.com/dash
MIT License
20.84k stars 2.01k forks source link

Set progress no update #2901

Open leeagustin opened 1 week ago

leeagustin commented 1 week ago

Fixes #2846.

While I wasn't able to replicate the error from the issue, I did find that set_progress((no_update, str(total))) sets the progress to 0: image

This is because the progress bar's value is being set to "[object Object]", which is probably being interpreted as 0. The progress bar's HTML being: <progress id="progress_bar" value="[object Object]" max="5" style="visibility: visible;"></progress>.

I modified it so that if set_progress has no_update for a component's output, that component will not be updated, but the other components—assuming they are not no_update—will be updated.

Contributor Checklist

optionals