File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function updateExclusiveLabelEdit(form) {
14
14
if ( isExclusiveScopeName ( $nameInput . val ( ) ) ) {
15
15
$exclusiveField . removeClass ( 'muted' ) ;
16
16
$exclusiveField . removeAttr ( 'aria-disabled' ) ;
17
- if ( $exclusiveCheckbox . prop ( ' checked' ) && $exclusiveCheckbox . data ( 'exclusive-warn' ) ) {
17
+ if ( $exclusiveCheckbox [ 0 ] . checked && $exclusiveCheckbox . data ( 'exclusive-warn' ) ) {
18
18
$exclusiveWarning . removeClass ( 'gt-hidden' ) ;
19
19
} else {
20
20
$exclusiveWarning . addClass ( 'gt-hidden' ) ;
@@ -50,10 +50,10 @@ export function initCompLabelEdit(selector) {
50
50
$nameInput . val ( $ ( this ) . data ( 'title' ) ) ;
51
51
52
52
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' ) ;
54
54
55
55
const $exclusiveCheckbox = $ ( '.edit-label .label-exclusive-input' ) ;
56
- $exclusiveCheckbox . prop ( ' checked' , this . hasAttribute ( 'data-exclusive' ) ) ;
56
+ $exclusiveCheckbox [ 0 ] . checked = this . hasAttribute ( 'data-exclusive' ) ;
57
57
// Warn when label was previously not exclusive and used in issues
58
58
$exclusiveCheckbox . data ( 'exclusive-warn' ,
59
59
$ ( this ) . data ( 'num-issues' ) > 0 &&
You can’t perform that action at this time.
0 commit comments