fix: wrap style in drop column.
fix: also change `DisplayValue` after changed. feature: support uncompressed export. change: add `editing` parameter in GridColumn.setEnabled.
This commit is contained in:
@ -321,11 +321,17 @@ export class Dropdown {
|
||||
this._var.label.innerText = text;
|
||||
}
|
||||
if (expanded) {
|
||||
const val = selected.replace(/"/g, '\\"');
|
||||
const li = this._var.container.querySelector(`li[data-value="${val}"]`);
|
||||
if (li != null) {
|
||||
li.classList.add('selected');
|
||||
for (let li of this._var.container.querySelectorAll('li[data-value]')) {
|
||||
if (li.dataset.value === selected) {
|
||||
li.classList.add('selected');
|
||||
break;
|
||||
}
|
||||
}
|
||||
// const val = selected.replace(/"/g, '\\"');
|
||||
// const li = this._var.container.querySelector(`li[data-value="${val}"]`);
|
||||
// if (li != null) {
|
||||
// li.classList.add('selected');
|
||||
// }
|
||||
}
|
||||
}
|
||||
this._var.selected = item;
|
||||
|
Reference in New Issue
Block a user