[theme demo] Fix dropdown losing choice on solarized light / dark #14280
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "github/fork/cben/theme-demo-location-hash"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Mild bug in demo due to space handling.
Before: https://codemirror.net/5/demo/theme.html#solarized%20dark
solarized%20dark=> dropdown reset to blank..cm-s-solarized .cm-s-darkclasses),sets URL fragment to
#solarized%20dark(implicitly encoded by browser?¹),which again triggers dropdown reset to blank (1).
After: https://raw.githack.com/cben/CodeMirror5/theme-demo-location-hash-DEBUG/demo/theme.html#solarized%20dark (from debug branch with extra console logging)
¹ ² This commit makes both setting and getting URL fragment reliable.
Thanks for fixing that!
Merged by: marijnh at 2025-03-11 14:35:55 UTC