Skip to content

Commit

Permalink
Wrap thee while with if rendererChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-fix committed Nov 8, 2018
1 parent 31b4e5a commit 9043468
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vaadin-notification.html
Expand Up @@ -366,8 +366,10 @@
if (renderer) {
this._card = this.$['vaadin-notification-card'];

while (this._card.firstChild && rendererChanged) {
this._card.removeChild(this._card.firstChild);
if (rendererChanged) {
while (this._card.firstChild) {
this._card.removeChild(this._card.firstChild);
}
}

if (opened) {
Expand Down

0 comments on commit 9043468

Please sign in to comment.