[Bug]: Theme class name get's removed from `html`
Author: wintercounterCreated Apr 11, 2025Updated Feb 6, 2026
Labelsbugtriage
What happened?
I was using 0.4.4 before any issues. I upgraded to 0.4.6 and noticed this. The only way I could reproduce was:
- Opening our home page
- Open devtools with mobile view on
- Navigate away
- Class name disappeared.
Without opening devtools it's not happening, not sure what's the root cause. With devtools everything runs slower, so maybe it's a race-condition somewhere or something?
Version
0.4.6
What browsers are you seeing the problem on?
Chrome
Source: pacocoursey/next-themes