Skip to content

Commit 97de3f3

Browse files
authored
fix: Theme selection event listeners (#3040)
The migration event needs to be used to set the event listeners for the theme select.
1 parent 912fd46 commit 97de3f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/assets/javascripts/color_mode_picker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ function showActiveTheme(theme, focus = false) {
7777
}
7878
}
7979

80-
$(document).on('turbo:load', function() {
80+
$(document).on('turbo-migration:load', function() {
8181
setTheme(getPreferredTheme())
8282

8383
showActiveTheme(getPreferredTheme())

0 commit comments

Comments
 (0)