Don't load emoji picker as default for performance

This commit is contained in:
AkiraFukushima 2018-11-13 23:38:59 +09:00
parent 8d45ab659c
commit 838a9b1dd8
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
<el-button type="text" class="emoji-selector" @click="toggleEmojiPicker"> <el-button type="text" class="emoji-selector" @click="toggleEmojiPicker">
<icon name="regular/smile" scale="1.2"></icon> <icon name="regular/smile" scale="1.2"></icon>
</el-button> </el-button>
<div v-show="openEmojiPicker" class="emoji-picker"> <div v-if="openEmojiPicker" class="emoji-picker">
<picker <picker
set="emojione" set="emojione"
:autoFocus="true" :autoFocus="true"
@ -127,7 +127,7 @@ export default {
}) })
} else if (oldState && !newState) { } else if (oldState && !newState) {
this.closeSuggest() this.closeSuggest()
this.openEmojiPicker = false this.hideEmojiPicker()
} }
} }
}, },