diff options
Diffstat (limited to 'toolkit/content/widgets/moz-button/moz-button.mjs')
-rw-r--r-- | toolkit/content/widgets/moz-button/moz-button.mjs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/toolkit/content/widgets/moz-button/moz-button.mjs b/toolkit/content/widgets/moz-button/moz-button.mjs index 3e7c151e61..a951dbf5d8 100644 --- a/toolkit/content/widgets/moz-button/moz-button.mjs +++ b/toolkit/content/widgets/moz-button/moz-button.mjs @@ -68,6 +68,11 @@ export default class MozButton extends MozLitElement { } } + // Delegate clicks on host to the button element. + click() { + this.buttonEl.click(); + } + render() { return html` <link |