From bc0b13245fe0541db423d8e097b34844e40250e1 Mon Sep 17 00:00:00 2001 From: Anthony Veaudry Date: Wed, 29 May 2024 16:10:23 +0300 Subject: [PATCH] Fixes problem in table controller --- .../javascripts/administrate/controllers/table_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/administrate/controllers/table_controller.js b/app/assets/javascripts/administrate/controllers/table_controller.js index ad0279d6a0..0576975660 100644 --- a/app/assets/javascripts/administrate/controllers/table_controller.js +++ b/app/assets/javascripts/administrate/controllers/table_controller.js @@ -9,7 +9,7 @@ export default class extends Controller { event.keyCode == keycodes.space || event.keyCode == keycodes.enter) { - if (event.target.href) { + if (event.target.closest("[href]")) { return; }