fix: TypeError cannot read properties of undefined (reading 'queryselector') (#8671)

This commit is contained in:
Sivin Varghese
2024-01-11 20:42:24 +05:30
committed by GitHub
parent 22c2235d90
commit c60c523851
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
<template>
<mention-box :items="items" @mention-select="handleMentionClick">
<mention-box
v-if="items.length"
:items="items"
@mention-select="handleMentionClick"
>
<template slot-scope="{ item }">
<strong>{{ item.label }}</strong> - {{ item.description }}
</template>

View File

@@ -1,6 +1,5 @@
<template>
<div
v-if="items.length"
ref="mentionsListContainer"
class="bg-white dark:bg-slate-800 rounded-md overflow-auto absolute w-full z-20 pb-0 shadow-md left-0 bottom-full max-h-[9.75rem] border border-solid border-slate-100 dark:border-slate-700 mention--box"
>