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) {
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 &&
You can’t perform that action at this time.
0 commit comments