-
Notifications
You must be signed in to change notification settings - Fork 54
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
aceAutocomplete not working when invoked within module #49
Comments
I don't use modules much and there is a pretty major new release of Shiny coming up. If the update to Shiny doesn't address your issue perhaps you could provide a PR for |
Thanks for your reply. I just tried my example above with the newest version of shiny to no avail. My guess is that the namespaces are not working properly since there is some
responsible for the completions. However, shiny modules only allow suffixes for |
@GregorDeCillia Could you check if the current version on GitHub (0.3.01) works as expect in your setting? Thanks for your help! |
Thank you for the quick merge! It almost works. In
with
as I did in my PR. These changes where reverted in the subsequent merge 6cab775. I tested this now with my actual project, which includes nested modules, dnymaic updates of contents and styles, |
Thanks for checking @GregorDeCillia. The current version on GitHub should work but please do check. FYI I also updated credits in the NEWS.md and README.md files. |
I can confirm that the current version on GitHub does work with my project. Thanks for mentioning me as a contributor. |
Thanks @GregorDeCillia. Closing issue |
I read about some previous bug with shiny modules and I am afraid I found another one. When I call
aceAutocomplete
within a shiny module, autoComplete does not get enabled. Interestingly enough, everything works if I callaceAutocomplete
in the global server - even if the targeted input id is part of a module. Here is a minimal example.If either of the commented lines get removed, autocomplete is working properly. In the first case, the module basically writes its outputs in the main
session
sinceNS(NULL)
is the identity function. In the second case,aceAutocomplete
gets invoked with the same id but a different session argument.I found that passing session to the module as a parameter fixes the problem, but I really don't like this approach, since my modules are nested.
The text was updated successfully, but these errors were encountered: