From 37c1fa17a9679309b3438956073c16cadbb68af9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 14 May 2022 10:11:26 -0400 Subject: [PATCH] fix: remove ev, hooks don't pass event, closes #10611 --- public/src/admin/settings/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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