media-chrome icon indicating copy to clipboard operation
media-chrome copied to clipboard

<MediaController> takes focus?

Open intelligence opened this issue 10 months ago • 2 comments

After some thorough head scratching I've tracked down that introducing <MediaController> in my app makes it takes focus in a carousel slider. I've got a Mux video on slide 2 and whenever <MediaController> is there it will jump to that slide. Disabling the carousel feature and simply having a horizontal scroll produces the same result. Removing <MediaController> or setting display: none on it, fixes it.

Any idea what might cause this behaviour?

intelligence avatar Mar 26 '24 21:03 intelligence

could you provide an online demo or code sandbox? that will help a lot with debugging

have you tried changing the tabindex attribute?

luwes avatar Apr 10 '24 15:04 luwes

Hey! I'm in the middle of getting this project production ready so I'll get back to you later.

I tried settings tabindex to -1 and 500 but that didn't change the behaviour.

intelligence avatar Apr 19 '24 14:04 intelligence