Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 338705b

Browse files
authored
Merge pull request #72 from radixdlt/RDT-199-fix-show-popover-menu
fix: rename onShowPopover event
2 parents a1aeeee + b4bcf8a commit 338705b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/connect-button.stories.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ const Button = (args: any) => {
112112
},
113113
]
114114
}}
115-
@onShowPopover=${() => {}}
115+
@onShowPopover=${() => {
116+
console.log('onShowPopover')
117+
}}
116118
>
117119
</radix-connect-button>
118120
</div>

src/components/connect-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export class ConnectButton extends LitElement {
129129
this.showPopoverMenu = !this.showPopoverMenu
130130
if (this.showPopoverMenu)
131131
this.dispatchEvent(
132-
new CustomEvent('onShowPopoverMenu', {
132+
new CustomEvent('onShowPopover', {
133133
bubbles: true,
134134
composed: true,
135135
})

0 commit comments

Comments
 (0)