Skip to content
Snippets Groups Projects
Commit ae1116df authored by Alex Pott's avatar Alex Pott
Browse files

Issue #1995152 by nick_schuch: Fixed Broken selector.

parent f584bd94
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -177,7 +177,8 @@ Drupal.tour.views.ToggleTourView = Backbone.View.extend({
var $this = $(this);
var itemId = $this.attr('data-id');
var itemClass = $this.attr('data-class');
if ((itemId && $document.find('#' + itemId).length) ||
if ((!itemId && !itemClass) ||
(itemId && $document.find('#' + itemId).length) ||
(itemClass && $document.find('.' + itemClass).length)){
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment