Skip to content

Commit 07ee294

Browse files
committed
docs(template-mouse-events-have-key-events): use mouseout in default-behavior examples (Copilot review)
1 parent 84c9967 commit 07ee294

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/rules/template-mouse-events-have-key-events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This rule **forbids** the following:
1919
```gjs
2020
<template>
2121
<div {{on "mouseover" this.showTooltip}}></div>
22-
<div {{on "mouseleave" this.hideTooltip}}></div>
22+
<div {{on "mouseout" this.hideTooltip}}></div>
2323
</template>
2424
```
2525

@@ -28,7 +28,7 @@ This rule **allows** the following:
2828
```gjs
2929
<template>
3030
<div {{on "mouseover" this.showTooltip}} {{on "focus" this.showTooltip}}></div>
31-
<div {{on "mouseleave" this.hideTooltip}} {{on "focusout" this.hideTooltip}}></div>
31+
<div {{on "mouseout" this.hideTooltip}} {{on "focusout" this.hideTooltip}}></div>
3232
</template>
3333
```
3434

0 commit comments

Comments
 (0)