Sebastian_Berlin-WMSE added a comment.

I did some experiments and I think this might work:

if($(step.attachTo).length === 0 {
  var observer = new MutationObserver(function (mutationList, observer) {
    for(var mutation of mutationList) {
      for(var node of mutation.addedNodes) {
        if(node === $(step.attachTo)) {
          e.stopPropagation();
          mw.libs.guiders.next();
        }
      }
    }
  });
  var targetNode = $("body").get(0);
  var observerOptions = {
    childList: true,
    subtree: true
  }
  observer.observe(targetNode, observerOptions);
} else {
  e.stopPropagation();
  mw.libs.guiders.next();
}

I don't have the rights to edit Guidedtour-lib.js; @Ladsgroup, can you try replacing the timeout with the above snippet and see if it works?


TASK DETAIL
https://phabricator.wikimedia.org/T213704

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Sebastian_Berlin-WMSE
Cc: Ladsgroup, Addshore, Sebastian_Berlin-WMSE, Lydia_Pintscher, johl, Jopparn, Alicia_Fagerving_WMSE, Tarrow, NavinoEvans, Ragesoss, Pasleim, Aklapper, Mrjohncummings, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, Jonas, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to