Lukas W.
Well-known member
- Affected version
- 2.0.10
There appears to be a few quirks in the toggle script that cause somewhat unexpected/confusing behavior in certain occasions. Specifically, this is reproducible on the ACP style page.
Specific issues:
Small illustrating video on the matter:
https://gfycat.com/ForsakenSelfassuredAsiantrumpetfish
Specific issues:
- Toggling the default style off will throw an error message "It is not possible to prevent users from selecting the default style."
- However, the off switch will not toggled back on again
- Switching the default theme to a style that's deactivated triggers the same error, but the state of the toggle is also kept.
- Refreshing the page resets both of these changes, so the page is left in an inconsistent state.
- Now toggling of the default theme again, then change the default theme trigger to an active theme, will again trigger the error message "It is not possible to prevent users from selecting the default style.", this time wrongly, as I've just set it to be an active theme. Reloading the page will reset the the off switch for the default theme, but keep the default toggle with the new selection. I assume it tried to toggle off the previous default theme again before changing the new default theme.
Small illustrating video on the matter:
https://gfycat.com/ForsakenSelfassuredAsiantrumpetfish