Use prop to set checked state fixes #30471

This commit is contained in:
roykho 2021-09-03 07:24:25 -07:00
parent 2d005836eb
commit 89535405bf
No known key found for this signature in database
GPG Key ID: 7B36C0EA25795714
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ jQuery(
$( 'select[name="_backorders"] option[value="' + backorders + '"]', '.inline-edit-row' ).attr( 'selected', 'selected' );
if ( 'yes' === featured ) {
$( 'input[name="_featured"]', '.inline-edit-row' ).attr( 'checked', 'checked' );
$( 'input[name="_featured"]', '.inline-edit-row' ).prop( 'checked', true );
} else {
$( 'input[name="_featured"]', '.inline-edit-row' ).prop( 'checked', false );
}