Skip to content

Commit

Permalink
chore: add more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
hirsch88 committed May 23, 2024
1 parent c528496 commit 8b748b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/components/bal-app/bal-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export class App implements Loggable {
@Prop({ reflect: true, mutable: true }) ready = false

connectedCallback() {
console.log('Hello I am a snapshot')
updateBalAnimated(this.animated)

if (balBrowser.hasWindow) {
Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/components/bal-modal/bal-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export class Modal implements OverlayInterface {
didDismiss!: EventEmitter<BalEvents.BalModalDidDismissDetail>

connectedCallback() {
console.log('Modal connectedCallback')
this.bodyScrollHandler.connect()
prepareOverlay(this)

Expand Down Expand Up @@ -165,6 +166,7 @@ export class Modal implements OverlayInterface {
*/
@Method()
async present(): Promise<void> {
console.log('Modal present')
this.setModalActiveOnBody()

if (this.presented) {
Expand Down Expand Up @@ -277,12 +279,14 @@ export class Modal implements OverlayInterface {
}

private setModalActiveOnBody() {
console.log('Modal setModalActiveOnBody', this.bodyScrollHandler)
if (!this.demo) {
this.bodyScrollHandler.disable()
}
}

private unsetModalActiveOnBody() {
console.log('Modal unsetModalActiveOnBody', this.bodyScrollHandler)
this.bodyScrollHandler.enable()
}

Expand Down

0 comments on commit 8b748b2

Please sign in to comment.