Tabs Prev+ Next - Nested buttons

Need help ASAP!

I’m using the below technique from @samliew :

To add Prev + Next buttons to a tabs component, however I need to put the buttons inside another div


Because it’s no longer a direct child of “inner-tab-wrapper” it doesn’t work, is there a way to get it to still connect to the buttons that are nested?

my read only:

Note: I’ve messaged on the associated thread but Sam’s website says his schedule is full and I need help ASAP :cold_sweat:

Can you describe with screenshots which tab element(s) you are trying to page through with the arrows?

1 Like


@sam-g I was able to get a solution! Thanks so much for responding I really appreciate it :smiley:

From @sabanna "Based on your project’s structure,

I would try adding 2 more parameters parent(). in this line


Great, glad you got it worked out :slight_smile:

I was just about to take a look at the code, but yes, essentially you needed to traverse the DOM a little bit differently than the original code since you had changed the structure, nice work @sabanna