Update deprecated jQuery functions for wc-clipboard.js

This commit is contained in:
roykho 2021-02-04 09:18:15 -08:00 committed by Jonathan Sadowski
parent 76762a08f8
commit eee6c96871
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ function wcSetClipboard( data, $el ) {
}
var $temp_input = jQuery( '<textarea style="opacity:0">' );
jQuery( 'body' ).append( $temp_input );
$temp_input.val( data ).select();
$temp_input.val( data ).trigger( 'select' );
$el.trigger( 'beforecopy' );
try {