Update assets/js/admin/quick-edit.js

Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
This commit is contained in:
Roy Ho 2021-07-30 17:19:29 +01:00 committed by GitHub
parent eb66b032dc
commit 00439232ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ jQuery(
'select[name="_visibility"] option, ' +
'select[name="_stock_status"] option, ' +
'select[name="_backorders"] option'
).removeAttr( 'selected' );
).prop( 'selected', false ).removeAttr( 'selected' );
var is_variable_product = 'variable' === product_type;
$( 'select[name="_stock_status"] ~ .wc-quick-edit-warning', '.inline-edit-row' ).toggle( is_variable_product );