list: fix exception when typing in list filter fields
This commit is contained in:
parent
0309dbb00e
commit
224e7e0c20
|
@ -40,7 +40,9 @@ export class ListView extends View {
|
||||||
this.nodeidFilter = domlib.newAt(cell2, 'input');
|
this.nodeidFilter = domlib.newAt(cell2, 'input');
|
||||||
this.nodeidFilter.setAttribute('placeholder', 'NodeID');
|
this.nodeidFilter.setAttribute('placeholder', 'NodeID');
|
||||||
this.nodeidFilter.setAttribute('size', '9');
|
this.nodeidFilter.setAttribute('size', '9');
|
||||||
this.nodeidFilter.addEventListener('keyup', this.render);
|
this.nodeidFilter.addEventListener('keyup', () => {
|
||||||
|
this.render();
|
||||||
|
});
|
||||||
cell2.addEventListener('dblclick', () => {
|
cell2.addEventListener('dblclick', () => {
|
||||||
this.sortTable(cell2);
|
this.sortTable(cell2);
|
||||||
});
|
});
|
||||||
|
@ -57,7 +59,9 @@ export class ListView extends View {
|
||||||
cell3.classList.add('hostname');
|
cell3.classList.add('hostname');
|
||||||
this.hostnameFilter = domlib.newAt(cell3, 'input');
|
this.hostnameFilter = domlib.newAt(cell3, 'input');
|
||||||
this.hostnameFilter.setAttribute('placeholder', 'Hostname');
|
this.hostnameFilter.setAttribute('placeholder', 'Hostname');
|
||||||
this.hostnameFilter.addEventListener('keyup', this.render);
|
this.hostnameFilter.addEventListener('keyup', () => {
|
||||||
|
this.render();
|
||||||
|
});
|
||||||
cell3.addEventListener('dblclick', () => {
|
cell3.addEventListener('dblclick', () => {
|
||||||
this.sortTable(cell3);
|
this.sortTable(cell3);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue