mirror of https://github.com/zulip/zulip.git
stream settings: Add whitespace before disabled attribute.
Fixes #19641. There was no whitespace between the 'checked' and 'disabled'
attribute, leading to muted checked checkboxes being neither checked nor
disabled (since `checkeddisabled='disabled'` didn't do anything).
This bug was introduced in 747e797
.
This change adds a new line before the disabled template code, so that both
the checked and disabled attributes are added properly.
Tested manually to ensure the following cases didn't change when reopening
the stream settings view:
* unchecked disabled checkboxes
* checked enabled checkboxes
* checked disabled checkboxes
This commit is contained in:
parent
9c623a1b3e
commit
251436f835
|
@ -6,7 +6,8 @@
|
|||
<label class="checkbox">
|
||||
<input id="{{setting_name}}_{{stream_id}}" name="{{setting_name}}"
|
||||
class="sub_setting_control" type="checkbox"
|
||||
{{#if is_checked}}checked{{/if}}{{#if is_disabled}}disabled="disabled"{{/if}} />
|
||||
{{#if is_checked}}checked{{/if}}
|
||||
{{#if is_disabled}}disabled="disabled"{{/if}} />
|
||||
<span></span>
|
||||
</label>
|
||||
<label class="subscription-control-label" for="{{setting_name}}_{{stream_id}}">{{label}}</label>
|
||||
|
|
Loading…
Reference in New Issue