1
0
Fork 0

Swapped hbs for html to render properly

This commit is contained in:
Ava Wroten 2020-03-03 15:20:15 -06:00
parent f97b0abb2a
commit 34080e47ec

View file

@ -32,7 +32,7 @@ ember install ember-modifier
Below is an example for how to track the focus state of a DOM element.
```hbs
```html
// my-component.hbs
<button
{{on 'focus' this.handleFocus}}
@ -139,7 +139,7 @@ module('Integration | Modifier | key-down', function(hooks) {
A simple example of a focusable element listening for the Enter key to be pressed.
```hbs
```html
// my-component.hbs
<button
{{key-down this.handleEnter key='Enter'}}
@ -165,7 +165,7 @@ _Note, often times it may be better to listen for keyup rather than keydown for
Sometimes you simply want to stop the default behavior of a key, such as scrolling down with an arrow key.
```hbs
```html
// my-component.hbs
<dialog
tabindex="0"