slight changes

This commit is contained in:
Craig
2020-02-01 21:27:41 +00:00
parent 98980cc565
commit 7253b5ac62
3 changed files with 27 additions and 18 deletions

View File

@ -1,5 +1,5 @@
<template>
<div class="neko-emoji">
<div class="neko-emoji" v-on-clickaway="onClickAway">
<div class="search">
<div class="search-contianer">
<input type="text" ref="search" v-model="search" />
@ -288,11 +288,14 @@
<script lang="ts">
import { Component, Ref, Watch, Vue } from 'vue-property-decorator'
import { directive as onClickaway } from 'vue-clickaway'
import { get, set } from '../utils/localstorage'
@Component({
name: 'neko-emoji',
directives: {
onClickaway,
},
})
export default class extends Vue {
@Ref('scroll') readonly _scroll!: HTMLElement
@ -378,5 +381,9 @@
this.$accessor.emoji.setRecent(emoji)
this.$emit('picked', emoji)
}
onClickAway(event: MouseEvent) {
this.$emit('done')
}
}
</script>