From e033f71dee95b8f0308f87a2c8cc31e919632a5e Mon Sep 17 00:00:00 2001 From: Andy Smith Date: Mon, 10 Nov 2025 14:44:14 -0600 Subject: [PATCH] Cleanup --- app/javascript/controllers/navigable_list_controller.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/javascript/controllers/navigable_list_controller.js b/app/javascript/controllers/navigable_list_controller.js index 46a5d2782..94acaf28b 100644 --- a/app/javascript/controllers/navigable_list_controller.js +++ b/app/javascript/controllers/navigable_list_controller.js @@ -80,13 +80,9 @@ export default class extends Controller { selectedItem.setAttribute(this.selectionAttributeValue, "true") this.currentItem = selectedItem await nextFrame() - // Ensure the selected item is visible inside any scrollable container. - // Use 'nearest' so we avoid jumping the viewport unnecessarily. try { this.currentItem.scrollIntoView({ block: "nearest", inline: "nearest" }) - } catch (e) { - // scrollIntoView may not be supported in older environments; ignore. - } + } catch (e) {} if (this.focusOnSelectionValue) { this.currentItem.focus() } if (this.hasInputTarget && id) {