Update deprecated jQuery functions for meta-boxes-coupon.js

This commit is contained in:
roykho 2021-02-04 08:11:44 -08:00 committed by Jonathan Sadowski
parent 13a9dbb422
commit 6e50fc0cf1
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ jQuery(function( $ ) {
);
}
$result = woocommerce_admin_meta_boxes_coupon.prefix + $result + woocommerce_admin_meta_boxes_coupon.suffix;
$coupon_code_field.focus().val( $result );
$coupon_code_field.trigger( 'focus' ).val( $result );
$coupon_code_label.addClass( 'screen-reader-text' );
}
};