Skip to content

Commit

Permalink
Merge pull request #1136 from nextcloud/hotfix/emoji-status-search
Browse files Browse the repository at this point in the history
fix(user-status): emoji picker cannot be focused
  • Loading branch information
ShGKme authored Feb 24, 2025
2 parents 45d7f29 + c8e607d commit 6434a20
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ const emit = defineEmits<{
(event: 'update:icon', value: string | null): void,
(event: 'update:message', value: string | null): void,
}>()

// TODO: Vue 3 - replace with `useId`
const id = Math.random().toString(36).slice(2, 8)
</script>

<template>
<div class="user-status-form-custom-message">
<NcEmojiPicker @select="emit('update:icon', $event)">
<div :id="id" class="user-status-form-custom-message">
<NcEmojiPicker :container="'#' + id" @select="emit('update:icon', $event)">
<NcButton :aria-label="t('talk_desktop', 'Emoji for your status message')" type="tertiary" :disabled="disabled">
<template #icon>
<template v-if="icon">
Expand Down

0 comments on commit 6434a20

Please sign in to comment.