diff --git a/app/javascript/controllers/image_modal_controller.js b/app/javascript/controllers/image_modal_controller.js index 0b11fa7..c79e392 100644 --- a/app/javascript/controllers/image_modal_controller.js +++ b/app/javascript/controllers/image_modal_controller.js @@ -18,6 +18,7 @@ export default class extends Controller { this.showImage(this.indexValue); this.modalTarget.classList.remove("hidden"); this.updateNavigationButtons(); + console.log("image-modal#openが呼ばれた"); } // モーダルを閉じる diff --git a/app/views/photo_spots/show.html.erb b/app/views/photo_spots/show.html.erb index 3943395..8880f23 100644 --- a/app/views/photo_spots/show.html.erb +++ b/app/views/photo_spots/show.html.erb @@ -1,5 +1,6 @@ <% content_for :title, @photo_spot.name %> -