D
D
Dmitry Nikolaev2020-09-02 10:11:52
JavaScript
Dmitry Nikolaev, 2020-09-02 10:11:52

Why doesn't audio play when clicked?

The mechanism of work is as follows: each pressed button has a data-tile attribute. For example, let's take data-tile = 3. When the button is clicked, sound src="3.mp3" is inserted into the html and the sound should play. But it does not play, although the file, in my opinion, is connected correctly. Example https://codesandbox.io/s/billowing-lake-3gcen?file...

Main app.vue file

5f4f45b06481f608190197.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question