Skip to content

Commit

Permalink
Prevent LitHTML from throwing from too many re-renderings (#3888)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeshev authored Sep 17, 2021
1 parent 3e49773 commit 1a760fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/main/src/Tokenizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ class Tokenizer extends UI5Element {
const popover = await this.getPopover();
popover.close();
}

this._nMoreCount = this.overflownTokens.length;
}

onEnterDOM() {
Expand Down Expand Up @@ -198,7 +200,6 @@ class Tokenizer extends UI5Element {
}

onAfterRendering() {
this._nMoreCount = this.overflownTokens.length;
this._scrollEnablement.scrollContainer = this.expanded ? this.contentDom : this;
}

Expand Down

0 comments on commit 1a760fe

Please sign in to comment.