diff --git a/app/assets/javascripts/pages/profiles/index.js b/app/assets/javascripts/pages/profiles/index.js index 5d634915d7a..c437cd90130 100644 --- a/app/assets/javascripts/pages/profiles/index.js +++ b/app/assets/javascripts/pages/profiles/index.js @@ -3,7 +3,7 @@ import Profile from '~/profile/profile'; import { getPagePath } from '~/lib/utils/common_utils'; document.addEventListener('DOMContentLoaded', () => { - $(document).on('input.ssh_key', '#key_key', () => { + $(document).on('input.ssh_key', '#key_key', function () { // eslint-disable-line func-names const $title = $('#key_title'); const comment = $(this).val().match(/^\S+ \S+ (.+)\n?$/);