Skip to content

Patched 'audio' element media player sometimes doesn't fully render. #1173

Description

@milelo

Bug Report

I have a Datastar app the uses the 'audio' media player. The audio element has a slot shaped background with superimposed controls, play/pause, time, slider, menu.

I render the 'audio' elements as part of items in a list, I never have a problem with the initial render.

When I use d* patch to swap the position of some items in the list that contain the audio elements, the audio element backgrounds are sometime rendered without the overlayed controls, so just the blank slot shaped background is rendered. If I click the player background the controls then appear on the background and the element functions normally.

If I give each audio element a unique id in addition to the list items, the problem occurs less frequently.

I don't have a simple way to reproduce the problem.

Latest Edge and Chrome browsers.

Datastar Version

v1.0.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions