Skip to content

Commit c14b370

Browse files
committed
fix new issues
1 parent 19fc799 commit c14b370

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web_src/js/features/comp/LabelEdit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function updateExclusiveLabelEdit(form) {
1414
if (isExclusiveScopeName($nameInput.val())) {
1515
$exclusiveField.removeClass('muted');
1616
$exclusiveField.removeAttr('aria-disabled');
17-
if ($exclusiveCheckbox.prop('checked') && $exclusiveCheckbox.data('exclusive-warn')) {
17+
if ($exclusiveCheckbox[0].checked && $exclusiveCheckbox.data('exclusive-warn')) {
1818
$exclusiveWarning.removeClass('gt-hidden');
1919
} else {
2020
$exclusiveWarning.addClass('gt-hidden');
@@ -50,10 +50,10 @@ export function initCompLabelEdit(selector) {
5050
$nameInput.val($(this).data('title'));
5151

5252
const $isArchivedCheckbox = $('.edit-label .label-is-archived-input');
53-
$isArchivedCheckbox.prop('checked', this.hasAttribute('data-is-archived'));
53+
$isArchivedCheckbox[0].checked = this.hasAttribute('data-is-archived');
5454

5555
const $exclusiveCheckbox = $('.edit-label .label-exclusive-input');
56-
$exclusiveCheckbox.prop('checked', this.hasAttribute('data-exclusive'));
56+
$exclusiveCheckbox[0].checked = this.hasAttribute('data-exclusive');
5757
// Warn when label was previously not exclusive and used in issues
5858
$exclusiveCheckbox.data('exclusive-warn',
5959
$(this).data('num-issues') > 0 &&

0 commit comments

Comments
 (0)