Move comment

This commit is contained in:
Jorge Manrubia
2025-11-20 13:42:33 +01:00
parent 20a0e2be9b
commit c472825a55
@@ -37,7 +37,6 @@ export default class extends Controller {
navigate(event) {
this.#keyHandlers[event.key]?.call(this, event)
// Stimulus won't let you handle keydown events with different handlers for the same (nested) stimulus controllers.
this.#relayNavigationToParentNavigableList(event)
}
@@ -173,6 +172,7 @@ export default class extends Controller {
return null
}
// Stimulus won't let you handle keydown events with different handlers for the same (nested) stimulus controllers.
#relayNavigationToParentNavigableList(event) {
const parentNavigableList = this.element.parentElement?.closest('[data-controller~="navigable-list"]')
if (parentNavigableList) {