kamranahmedse / driver.js

A light-weight, no-dependency, vanilla JavaScript engine to drive user's focus across the page
https://driverjs.com
MIT License
22.52k stars 1.01k forks source link

driverObj.getActiveStep(); outputs the previous step #528

Open klentgalimbas opened 2 hours ago

klentgalimbas commented 2 hours ago

I am trying to get the active step's CSS selector but it outputs the previous step's CSS selector.

var activeStep = driverObj.getActiveStep(); var current = activeStep.element;

klentgalimbas commented 1 hour ago

It turns out I am using the older version

fixed on version 1.2.0. You should update the link on your website