提交 fe2b732b 编写于 作者: I isidor

polish

上级 2aef9dcf
...@@ -651,15 +651,13 @@ export class List<T> implements ISpliceable<T>, IDisposable { ...@@ -651,15 +651,13 @@ export class List<T> implements ISpliceable<T>, IDisposable {
if (options.ariaLabel) { if (options.ariaLabel) {
this.view.domNode.setAttribute('aria-label', options.ariaLabel); this.view.domNode.setAttribute('aria-label', options.ariaLabel);
} }
this.view.domNode.setAttribute('aria-setsize', this.length.toString()); this.view.domNode.setAttribute('aria-setsize', '0');
this.style(options); this.style(options);
} }
splice(start: number, deleteCount: number, elements: T[] = []): void { splice(start: number, deleteCount: number, elements: T[] = []): void {
this.eventBufferer.bufferEvents(() => { this.eventBufferer.bufferEvents(() => this.spliceable.splice(start, deleteCount, elements));
this.spliceable.splice(start, deleteCount, elements);
});
this.view.domNode.setAttribute('aria-setsize', this.length.toString()); this.view.domNode.setAttribute('aria-setsize', this.length.toString());
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册