Skip to content

Commit

Permalink
Merge pull request #27 from delowardev/fix/group-names
Browse files Browse the repository at this point in the history
Fix: Unable to change group names.
  • Loading branch information
delowardev authored Jun 16, 2022
2 parents 98fa0ed + 742c86f commit 60b432f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.1.3 (16/06/22)

- Fix: Unable to change group names #25

v1.1.0 (24/04/22)

- Fix: Missing emoji on Mac. See: #20
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue3-emoji-picker",
"version": "1.1.1",
"version": "1.1.3",
"license": "MIT",
"author": "delowardev",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Body.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class="v3-group"
>
<h5 v-if="hasGroupNames" :class="isSticky ? `v3-sticky` : ``">
{{ GROUP_NAMES[key] }}
{{ groupNames[key] }}
</h5>
<div class="v3-emojis">
<button
Expand Down Expand Up @@ -79,7 +79,7 @@ export default defineComponent({
const _this = getCurrentInstance()
const hasGroupNames = computed(() => !state.options.hideGroupNames)
const isSticky = computed(() => !state.options.disableStickyGroupNames)
const groupNames = computed(() => state.options.groupNames)
const groupNames = state.options.groupNames
const platform = isMac() ? 'is-mac' : ''
Expand Down Expand Up @@ -125,8 +125,8 @@ export default defineComponent({
EMOJI_NAME_KEY,
hasGroupNames,
isSticky,
groupNames,
platform,
groupNames,
}
},
})
Expand Down
1 change: 1 addition & 0 deletions src/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const defaultOptions: Record<string, any> = {
hideGroupNames: false,
staticTexts: {},
disabledGroups: [],
groupNames: {},
}

export default function Store(): Store {
Expand Down

0 comments on commit 60b432f

Please sign in to comment.