Skip to content

Commit

Permalink
Merge pull request #22 from squidit/feature/SQ-27417-overlay-nao-fecha
Browse files Browse the repository at this point in the history
feature/SQ-27417-overlay-nao-fecha
  • Loading branch information
JonasPeres committed Oct 5, 2023
2 parents 99be793 + 2016240 commit 68e8918
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/sq-modal/sq-modal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export class SqModalComponent implements OnChanges {
this.document = documentImported || document
this.localized = this.router.url
router.events.subscribe(async (event) => {
if (this.localized !== undefined && event instanceof NavigationStart && this.localized !== event.url) {
if (this.open && this.localized !== undefined && event instanceof NavigationStart && this.localized !== event.url) {
this.removeModalFromBody()
await sleep(1000)
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/sq-overlay/sq-overlay.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class SqOverlayComponent implements OnChanges {
this.document = documentImported || document
this.localized = this.router.url
router.events.subscribe(async (event) => {
if (this.localized !== undefined && event instanceof NavigationStart && this.localized !== event.url) {
if (this.open && this.localized !== undefined && event instanceof NavigationStart && this.localized !== event.url) {
this.removeOverlayFromBody()
await sleep(1000)
}
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@squidit/ngx-css",
"version": "1.1.5",
"version": "1.1.51",
"peerDependencies": {
"@angular/common": ">=15.0.0",
"@angular/core": ">=15.0.0",
Expand Down

0 comments on commit 68e8918

Please sign in to comment.