updates
This commit is contained in:
@@ -7,7 +7,7 @@ export class AppendOptions {
|
|||||||
opts = opts || {};
|
opts = opts || {};
|
||||||
|
|
||||||
if (opts.clear) {
|
if (opts.clear) {
|
||||||
this.replaceChildren();
|
target.replaceChildren();
|
||||||
}
|
}
|
||||||
|
|
||||||
let options = '';
|
let options = '';
|
||||||
@@ -22,6 +22,6 @@ export class AppendOptions {
|
|||||||
Ut.each(data, (v, k) => options += `<option value="${k}">${v}`);
|
Ut.each(data, (v, k) => options += `<option value="${k}">${v}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
target.innerHTML = options;
|
target.insertAdjacentHTML('beforeend', options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user