Skip to content

Commit

Permalink
Merge pull request #145 from serebrov/fix-docs-non-native-emoji-output
Browse files Browse the repository at this point in the history
Fix issue with non-native emoji output in demo app.
  • Loading branch information
serebrov authored Nov 21, 2021
2 parents 924e131 + 0c34d6b commit f9187a5
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,20 @@
/>
</div>

<div class="row">{{ emojisOutput }}</div>
<div class="row">
<emoji
v-for="emo in selectedEmojis"
:data="index"
:emoji="emo"
:set="activeSet"
:native="native"
:size="32"
/>
</div>

<div class="row">
{{ emojisOutput }}
</div>

<div class="row-small">
<iframe
Expand All @@ -60,7 +73,7 @@
</div>

<q-dialog v-model="emojiPickerDialog">
<template v-slot:body style="height:450px">
<template v-slot:body style="height: 450px">
<picker :data="index" :emojiSize="24" :native="true"></picker>
</template>
</q-dialog>
Expand All @@ -69,7 +82,7 @@
<h2>Custom Dialog Example</h2>
<div class="row">
<button @click="emojiPickerCustomDialog = true">
Open Cuttom Dialog
Open Custom Dialog
</button>
</div>

Expand All @@ -79,9 +92,7 @@
<div class="popup-close">
<a @click="emojiPickerCustomDialog = false">X</a>
</div>
<h2>
Emoji Selector
</h2>
<h2>Emoji Selector</h2>
<picker :data="index" :emojiSize="24" :native="true"></picker>
</div>
</div>
Expand Down Expand Up @@ -256,6 +267,7 @@ export default {
emojiPickerDialog: false,
emojiPickerCustomDialog: false,
emojisOutput: '',
selectedEmojis: [],
flagsVisible: true,
}
},
Expand Down Expand Up @@ -286,7 +298,12 @@ export default {
}
},
showEmoji(emoji) {
this.emojisOutput = this.emojisOutput + emoji.native
this.selectedEmojis.push(emoji)
if (emoji.native) {
this.emojisOutput = this.emojisOutput + emoji.native
} else {
this.emojisOutput = this.emojisOutput + '?'
}
},
},
components: {
Expand Down

0 comments on commit f9187a5

Please sign in to comment.