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:
parent
a13e01bc46
commit
190d38b55f
|
@ -79,7 +79,7 @@
|
|||
}
|
||||
|
||||
function copyPrivateKey() {
|
||||
angular.element('textarea').select();
|
||||
angular.element('textarea').trigger('select');
|
||||
document.execCommand('copy');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue