Skip to content

Commit

Permalink
Merge pull request #226 from radixdlt/fix-overflow
Browse files Browse the repository at this point in the history
fix: overflow when closing popup
  • Loading branch information
xstelea authored Jun 26, 2024
2 parents ae75612 + 3b663b3 commit 1139530
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/connect-button/src/components/connect-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,6 @@ export class ConnectButton extends LitElement {
: this.initialBodyOverflow
}

private closePopover() {
this.showPopoverMenu = false
}

private connectButtonTemplate() {
const buttonText = this.connected ? this.personaLabel : 'Connect'

Expand Down Expand Up @@ -277,7 +273,7 @@ export class ConnectButton extends LitElement {
?compact=${this.compact}
?showCloseButton=${this.showPopoverCloseButton}
@onClosePopover=${() => {
this.closePopover()
this.togglePopoverMenu()
}}
class=${classMap({
show: this.showPopoverMenu,
Expand Down

0 comments on commit 1139530

Please sign in to comment.