Skip to content

Commit

Permalink
FIX: ISSUE #938 Providing multiple classes in positionClass
Browse files Browse the repository at this point in the history
  • Loading branch information
Prajwal Deep Bhandari authored and prajwal-np committed Mar 3, 2023
1 parent 815e1dd commit 03bd6ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib/overlay/overlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ export class Overlay {
const pane = this._document.createElement('div');

pane.id = 'toast-container';
pane.classList.add(positionClass);
const positionClassArray = positionClass.replaceAll(/\s/g,"#").split("#")
positionClassArray.forEach((posClass:string)=>posClass.length && pane.classList.add(posClass));
pane.classList.add('toast-container');

if (!overlayContainer) {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"module": "es2020",
"lib": [
"es2018",
"dom"
"dom",
"es2021"
],
"useDefineForClassFields": false
},
Expand Down

0 comments on commit 03bd6ec

Please sign in to comment.