fix(button): forward on:focus event (#1878)

Fixes #1830
This commit is contained in:
Ryan Marx 2024-01-09 22:09:11 -06:00 committed by GitHub
commit 59018728df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 23 additions and 1 deletions

View file

@ -134,6 +134,8 @@
{...$$restProps}
style="{hasIconOnly && 'width: 3rem;'}"
on:click
on:focus
on:blur
on:mouseover
on:mouseenter
on:mouseleave
@ -147,6 +149,8 @@
bind:this="{ref}"
{...buttonProps}
on:click
on:focus
on:blur
on:mouseover
on:mouseenter
on:mouseleave
@ -166,6 +170,8 @@
bind:this="{ref}"
{...buttonProps}
on:click
on:focus
on:blur
on:mouseover
on:mouseenter
on:mouseleave

View file

@ -26,6 +26,8 @@
class:bx--btn--xl="{size === 'xl'}"
{...$$restProps}
on:click
on:focus
on:blur
on:mouseover
on:mouseenter
on:mouseleave
@ -43,6 +45,8 @@
class:bx--btn--xl="{size === 'xl'}"
{...$$restProps}
on:click
on:focus
on:blur
on:mouseover
on:mouseenter
on:mouseleave