Swapped hbs for html to render properly
This commit is contained in:
parent
f97b0abb2a
commit
34080e47ec
1 changed files with 3 additions and 3 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue