NO BUG: Tabindex attribute is removing from button

Tabindex attribute is removing from button.
In some cases we need add tabindex = -1 to buttons.
Bricks Builder remove this attribute on render.

Hi @MarekKmiecik,

this should not be happening. I tested on a local install and tabindex attribute is there.
image

What happens if you add any other attribute?

Best regards,
M

You are right. Normally this works fine.
But in this case, button is into query loop.
And thats not work - maybe this is the reason.
If I add more attributes, this works fine (are added).

image

I also tested inside a query loop on my local install, and now also inside a Nestable slider, just like you have it.
Can you please try to disable all plugins, if the problem persists, would you be so kind as to send temporary login credentials and a link to this thread to help@bricksbuilder.io using the email address you used during the purchase, so we can take a look what could it be.

Thank and best regards,
M

I found problem.
Tabindex disapear if this is enabled.

image

Hi,

now I can replicate the issue. When I was testing in the slider, I did not have the link enabled.
Now, our Slider element uses a Splide library and it seems that Splide removes tabindex from some elements. Here is the Splide bug report: tabindex="-1" removed from elements inside visible slides · Issue #1185 · Splidejs/splide · GitHub

If you block the loading of the splide.min.js library, then you can see that tabindex="-1" attribute is there. It gets removed once Splide is loaded and initialized.

For now, I will mark this as a NO BUG.

Best regards,
M

1 Like