diff --git a/public/src/admin/settings/api.js b/public/src/admin/settings/api.js index cc0e0e8c70..52734bdaef 100644 --- a/public/src/admin/settings/api.js +++ b/public/src/admin/settings/api.js @@ -7,7 +7,7 @@ define('admin/settings/api', ['settings', 'alerts', 'hooks'], function (settings settings.load('core.api', $('.core-api-settings')); $('#save').on('click', saveSettings); - hooks.on('action:settings.sorted-list.itemLoaded', (ev, { element }) => { + hooks.on('action:settings.sorted-list.itemLoaded', ({ element }) => { element.addEventListener('click', (ev) => { if (ev.target.closest('input[readonly]')) { // Select entire input text