8000 add note about v-focus (#679) · vishalkakadiya/vuejs.org@ed6a524 · GitHub
[go: up one dir, main page]

Skip to content

Commit ed6a524

Browse files
defcckazupon
authored andcommitted
add note about v-focus (vuejs#679)
* keyCodes now support array type * remove trailing whitespace * add an infomationn of v-focus. * fix typo * fix typo
1 parent 5ac41da commit ed6a524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/custom-directive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ new Vue({
2424
</script>
2525
{% endraw %}
2626

27-
When the page loads, that element gains focus. In fact, if you haven't clicked on anything else since visiting this page, the input above should be focused now. Now let's build the directive that accomplishes this:
27+
When the page loads, that element gains focus (note: autofocus doesn't work on mobile Safari). In fact, if you haven't clicked on anything else since visiting this page, the input above should be focused now. Now let's build the directive that accomplishes this:
2828

2929
``` js
3030
// Register a global custom directive called v-focus

0 commit comments

Comments
 (0)
0