Fix Modal init

This commit is contained in:
Stephan Porada 2020-09-22 12:44:54 +02:00
parent 61658410b2
commit 3c86a2f334

View File

@ -89,9 +89,9 @@ class ResultsList extends List {
let modalInit = false;
let options;
if (Array.isArray(selector)) {
options = selector[1];
selector = selector[0];
modalInit = true;
options = selector[1];
}
// Check if the current selector has already been used.
if (this.knownHTMLElements.has(selector)) {