我无法弄清楚如何在下拉元素上使用intro.js.
我发现了一个类似的问题没有答案:IntroJS Bootstrap菜单不起作用
如果要重现错误,请按照下列步骤操作:
http://recherche.utilitaire.melard.fr/#/carto
你必须点击"Aide"(右上角的绿色按钮),第二步就会出现问题.关于改变事件,我这样做:
$scope.ChangeEvent = function (e) {
if (e.id === 'step2') {
document.getElementById('step1').click();
}
console.log("Change Event called");
};
Run Code Online (Sandbox Code Playgroud)
在调试时,一切都像魅力一样工作,直到该函数结束:_showElement之后,我迷失在JQuery事件中,并且关闭了下拉列表......
如果你想重现,只需在_showElement函数的末尾添加一个断点,你就会理解我的意思......