Closed carmmac closed 4 months ago
Hi, found a bug using 2.0.3 version inside Nuxt3 project.
passing :show-volume-button="false"
:show-volume-button="false"
throws an error TypeError: Cannot read properties of undefined (reading 'addEventListener')
at this.$refs.playVolumeWrap.addEventListener( 'touchmove', this.handleVolumePanmove, )
this.$refs.playVolumeWrap.addEventListener( 'touchmove', this.handleVolumePanmove, )
usage of the component
<VueAudioPlayer ref="audioPlayer" :audio-list="[{src: audio}]" theme-color="#BBAD9E" :show-play-loading="false" :show-volume-button="false" :show-playback-rate="false" :show-prev-button="false" :show-next-button="false" > <template #play-start> <BaseSvg icon="play" /> </template> <template #play-pause> <BaseSvg icon="pause" /> </template> </VueAudioPlayer>
package.json
"@liripeng/vue-audio-player": "^2.0.3", "nuxt": "^3.5.1",
The v2.0.4 version is fixed
Hi, found a bug using 2.0.3 version inside Nuxt3 project.
passing
:show-volume-button="false"
throws an error TypeError: Cannot read properties of undefined (reading 'addEventListener')
at
this.$refs.playVolumeWrap.addEventListener( 'touchmove', this.handleVolumePanmove, )
usage of the component
package.json