LoginSignup
0
0

More than 5 years have passed since last update.

turbolinksとaudioタグで再生され続ける

Posted at

turbolinksを使って、Audioタグで音声を再生させていると、リンクをクリックしても音声が再生され続ける。
この問題の手っ取り早い解決方法

$(document).on 'turbolinks:click', ->
  $('audio').remove();

とりあえず、クリックとともにAudioタグを消す。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0