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

materialSwitch label issue #631

Open
RightChain opened this issue Sep 6, 2023 · 2 comments
Open

materialSwitch label issue #631

RightChain opened this issue Sep 6, 2023 · 2 comments

Comments

@RightChain
Copy link

RightChain commented Sep 6, 2023

I have a very large shiny application that has been running well for over a year, but it looks like the latest update to ShinyWidgets has broken the label for me (see image below). It is now consistently adding a ::before and ::after around the label text in the css. I have attempted a minimal reproducible example, but have not yet succeeded in doing so.

image image

Details

  1. The issue cropped up on my production server last week after building a new image of the shiny app. This used the latest CRAN version of "shinyWidgets" package (0.8.0) for R 4.3.1 on Ubuntu 22.04.
  2. The issue did not appear on my local Windows machine running R 4.3.1 until I updated to the latest CRAN version of shinyWidgets (0.8.0). Note that I only updated shinyWidgets. Now my application running locally reproduces the visual error.
  3. I've attempted a minimal reproducible example, but have not succeeded. I've put the materialSwitch in a module, put it inside of similar divs/tabs, rendered it dynamically, encapsulating it in shinyBS, and had no luck.
  4. I checked my css and js codes to see if they interfere, and they do not. No minimally reproduced error.
  5. I've run my minimal reproducible attempts in the same environment created by the application in case there were packages interfering, but the visual error still only appears in my larger application.

I suspect the issue may be in the .css or .js scripts of one ui element interfering with another, but I'm not sure. That is not my forte. I need to move on to other tasks for the moment, so I was wondering if you had seen any similar issues and could advise me on how to move forward. My short term plan is to use the previous CRAN version until I can isolate the issue.

@pvictor
Copy link
Member

pvictor commented Sep 18, 2023

Have you stored result of materialSwitch() before displaying it in the browser somehow ? In a .rds file or in raw HTML ?

@seepepdl1
Copy link

I had exactly the same issue after updating shinyWidgets from 0.7.6 to 0.8.0.
For me i just had to clear the cache of my google chrome navigator..
But i guess this could be a problem for your users if your app is in production

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

No branches or pull requests

3 participants