We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c099d26 commit a53cb9aCopy full SHA for a53cb9a
1 file changed
app/javascript/source_tabs.js
@@ -189,3 +189,7 @@ const initTabs = () => {
189
// Initialize on page load and after Turbo navigates
190
// turbo:load fires on both initial page load and subsequent Turbo navigations
191
document.addEventListener('turbo:load', initTabs)
192
+
193
+// Run immediately in case turbo:load already fired before this script loaded
194
+// (happens on first search when Turbo Drive loads the page containing this script)
195
+initTabs()
0 commit comments