Skip to content

Commit 6d769fa

Browse files
chore: add assigning with new element when reset is called
1 parent 436a2f2 commit 6d769fa

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/Toast/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class ToastCreator {
124124

125125
const newEl = document.createElement('div');
126126
newEl.className = 'tyk-toast';
127+
this.el = newEl;
127128
document.body.appendChild(newEl);
128129
this.root = createRoot(newEl);
129130
this.renderContainer();

0 commit comments

Comments
 (0)