Plugin settings: bug on checkbox with default=true #3838
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Bug 🐛
Confirmed bug, at least replicated once by another contributor
Describe the current behavior
In a plugin, if I have a checkbox settings with default value
true
, it will always be checked when refreshing the settings page.A user of my plugin https://github.com/JohnXLivingston/peertube-plugin-livechat had the following bug: JohnXLivingston/peertube-plugin-livechat#13
Steps to reproduce:
Describe the expected behavior
Checkbox should remain unchecked (default value should not override false, only undefined values)
Additional information
the settings declaration:
PeerTube instance:
Browser name, version and platforms on which you could reproduce the bug: Firefox
The text was updated successfully, but these errors were encountered: