How to add focus state on initial load to first element #1203
Unanswered
samuelreichor
asked this question in
Q&A
Replies: 1 comment
-
I found the Problem, but I still need a Solution for that. That slider opens in a full screen modal and is hidden by default, on click the hidden class gets removed and then the modal opens and there it seems to has lost the focused element |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys I'm trying to build a slider which starts at the middle of the page and I am using these options:
{ fixedWidth: 'calc((100vw/25)*7)', padding: { right: 'calc(100vw/25)', left: 'calc(100vw/25)' }, perMove: 2, keyboard: true, focus: 'center', trimSpace: false, slideFocus: true, pagination: false, snap: true, }; },
This works fine if I click on one of the arrows, then it refreshes and uses the right focus state. On initial load it Looks like this:
That would be the expected behavior:

Any Ideas?
Beta Was this translation helpful? Give feedback.
All reactions