-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Persistent .recalculating
class if removeUI and output hiding operations are performed
#4114
Comments
I haven't fully investigated this yet, but it also seems important to note that the behavior of this app doesn't seem correct with shiny v1.8.1.1 either (before busy indicators and changes to bug.mp4So, I'm not yet ready to say the new behavior is "wrong" to label the output as recalculating, but is more likely highlighting a problem that already existed |
Ok, I've investigated the issue further, and it's due to the fact that the show/hide methods used here are changing the visibility of Shiny.addCustomMessageHandler('show', function(e) {
let result = document.getElementById('text_1');
result.style.removeProperty('display');
Shiny.bindAll(result)
}); |
Count this as yet another reason why Shiny should be leveraging |
Thank you very much! I wasn't aware that it is need to call |
System details
Example application or steps to reproduce the problem
To reproduce the problem:
You will see persistent busy indicator.
Describe the problem in detail
I'm working on the app where user can create outputs dynamically, remove them, hide them and show them; and above I have showed as minimal reproducible example as I was able to produce based on my app.
Problem is that busy indicator (class
.recalculating
) is persistent if UI removing (of output X) and UI hiding (of output Y) is used (both of these operations must be used and in the order I mentioned above). Specifically, problem is when output X is removing and at the same time output Y has styledisplay = 'none'
.I would like to say that in the previous version of
shiny
this problem does not occur, but this is somehow more complicated. In my real app this problem does not occur in previous version, but using this MRE I see the similar problem (of course, busy indicator is not present, but output is not updated in previous version where busy indicators were not introduced). I can't say why in my real app this problem was not present in previous version.I believe this is a bug in
{shiny}
, but if someone could explain me, why this problem exists and what can I do with that, that would be great :).The text was updated successfully, but these errors were encountered: