Use turbo:click, not click

Otherwise Turbo falls back to a regular Browser navigation.
This commit is contained in:
Kevin McConnell
2025-01-10 15:34:58 +00:00
parent d536358228
commit 31ac7950ce
+1 -1
View File
@@ -7,7 +7,7 @@ module NotificationsHelper
link_to notification.resource, id: dom_id(notification), class: "notification",
data: {
turbo_frame: "_top",
action: "notifications--readings#record",
action: "turbo:click->notifications--readings#record",
notifications__readings_url_param: notification_readings_url(notification)
}, &
end