diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-14 20:17:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-14 20:17:12 +0900 |
| commit | 20a943b193ca1ac5a479803204a065839ec4bb61 (patch) | |
| tree | 14f4592d710e149ab2b6a2fb3ce6a5dfb35eb0a0 /src/client/app/common/views/components/ui | |
| parent | [Client] Add missing icon (diff) | |
| download | misskey-20a943b193ca1ac5a479803204a065839ec4bb61.tar.gz misskey-20a943b193ca1ac5a479803204a065839ec4bb61.tar.bz2 misskey-20a943b193ca1ac5a479803204a065839ec4bb61.zip | |
:art:
Diffstat (limited to 'src/client/app/common/views/components/ui')
| -rw-r--r-- | src/client/app/common/views/components/ui/button.vue | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/client/app/common/views/components/ui/button.vue b/src/client/app/common/views/components/ui/button.vue index ee8366e89d..d7d65ad87e 100644 --- a/src/client/app/common/views/components/ui/button.vue +++ b/src/client/app/common/views/components/ui/button.vue @@ -38,12 +38,24 @@ export default Vue.extend({ type: Boolean, required: false, default: false - } + }, + autofocus: { + type: Boolean, + required: false, + default: false + }, }, data() { return { styl: 'fill' }; + }, + mounted() { + if (this.autofocus) { + this.$nextTick(() => { + this.$el.focus(); + }); + } } }); </script> |