Fix deprecated use of 'jQuery.fn.select()' shorthand event

This patch replace the usage of jQuery.fn.select() with
 .trigger( "select" ) function to fix the
'jQuery.fn.select() event shorthand is deprecated' warning as
recommended in the jQuery docs. [1].

Note: You will get this deprecation warning while creating a keypair
in launch instance workflow.

[1] https://api.jquery.com/select-shorthand/

Change-Id: Ibf0d2020b295108a354d62e1068c4532f12cc103
This commit is contained in:
manchandavishal 2023-05-17 20:17:19 +05:30
parent a13e01bc46
commit 190d38b55f
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@
}
function copyPrivateKey() {
angular.element('textarea').select();
angular.element('textarea').trigger('select');
document.execCommand('copy');
}