HiDeoo/intro.js-react

location of intro js container

Closed this issue · 4 comments

Hi,
I have an issue with using intro.js-react library.
Imagine this scenario :
1- a page with a card (card A) inside it.
2-when click on card A another card (SecondCard) will be open beside card A, so the width of card A become 50%,
3- using introjs for card A and SecondCard: SecondCard's first step doesn't locate where it should.
in short: with update location of elements intro.js-react doesn't update.

You can check the dynamic elements example from the README to see how to properly use a step on your second card which is dynamically added after a click event.

Could you make a quick basic repro of the issue on https://codesandbox.io ?

but it will be great if you can see the functional component samples for features of intro.js.

@mehridaie I've converted some of the initial demo to functional components here. Dynamic element is working!