Closed r-brown closed 3 years ago
Object "fromStep" at the first step in the version(> 3.0) instead of an empty object will be null. So you need to check formStep for null.
Change example: from
guideChimp.on('onBeforeChange', (to, from)=>{
document.getElementById('log').innerHTML = 'log: ' + from.title + ' -> ' + to.title;
});
to
guideChimp.on('onBeforeChange', (to, from)=>{
var fromTitle = (from) ? from.title : undefined;
var toTitle = to.title;
document.getElementById('log').innerHTML = 'log: ' + fromTitle + ' -> ' + toTitle;
});
Describe the bug https://codepen.io/netlicensing/pen/BazaXYo