feat(Audio): fix react warning
This commit is contained in:
parent
0474031a78
commit
d290d28248
|
@ -41,11 +41,9 @@ export default class Audio extends AbstractAudio {
|
|||
* @returns {ReactElement}
|
||||
*/
|
||||
render() {
|
||||
const loop = this.props.loop ? 'true' : null;
|
||||
|
||||
return (
|
||||
<audio
|
||||
loop = { loop }
|
||||
loop = { Boolean(this.props.loop) }
|
||||
onCanPlayThrough = { this._onCanPlayThrough }
|
||||
preload = 'auto'
|
||||
|
||||
|
|
Loading…
Reference in New Issue