Skip to content

Commit 60b432f

Browse files
authored
Merge pull request #27 from delowardev/fix/group-names
Fix: Unable to change group names.
2 parents 98fa0ed + 742c86f commit 60b432f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v1.1.3 (16/06/22)
2+
3+
- Fix: Unable to change group names #25
4+
15
v1.1.0 (24/04/22)
26

37
- Fix: Missing emoji on Mac. See: #20

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-emoji-picker",
3-
"version": "1.1.1",
3+
"version": "1.1.3",
44
"license": "MIT",
55
"author": "delowardev",
66
"repository": {

src/components/Body.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class="v3-group"
1010
>
1111
<h5 v-if="hasGroupNames" :class="isSticky ? `v3-sticky` : ``">
12-
{{ GROUP_NAMES[key] }}
12+
{{ groupNames[key] }}
1313
</h5>
1414
<div class="v3-emojis">
1515
<button
@@ -79,7 +79,7 @@ export default defineComponent({
7979
const _this = getCurrentInstance()
8080
const hasGroupNames = computed(() => !state.options.hideGroupNames)
8181
const isSticky = computed(() => !state.options.disableStickyGroupNames)
82-
const groupNames = computed(() => state.options.groupNames)
82+
const groupNames = state.options.groupNames
8383
8484
const platform = isMac() ? 'is-mac' : ''
8585
@@ -125,8 +125,8 @@ export default defineComponent({
125125
EMOJI_NAME_KEY,
126126
hasGroupNames,
127127
isSticky,
128-
groupNames,
129128
platform,
129+
groupNames,
130130
}
131131
},
132132
})

src/store/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const defaultOptions: Record<string, any> = {
1111
hideGroupNames: false,
1212
staticTexts: {},
1313
disabledGroups: [],
14+
groupNames: {},
1415
}
1516

1617
export default function Store(): Store {

0 commit comments

Comments
 (0)