turbolinksを使って、Audioタグで音声を再生させていると、リンクをクリックしても音声が再生され続ける。
この問題の手っ取り早い解決方法
$(document).on 'turbolinks:click', ->
$('audio').remove();
とりあえず、クリックとともにAudioタグを消す。
More than 5 years have passed since last update.
turbolinksを使って、Audioタグで音声を再生させていると、リンクをクリックしても音声が再生され続ける。
この問題の手っ取り早い解決方法
$(document).on 'turbolinks:click', ->
$('audio').remove();
とりあえず、クリックとともにAudioタグを消す。
Register as a new user and use Qiita more conveniently