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