@lark-apaas/coding-template-nestjs-react-fullstack 0.1.55-alpha.20261101050259 → 0.1.55-alpha.20261101081612
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -208,7 +208,7 @@ function MentionSkeleton() {
|
|
|
208
208
|
|
|
209
209
|
/** Source: miaoda biz-mention/position + UD MentionPanel and OptionItem less. */
|
|
210
210
|
export function MentionSuggestions({
|
|
211
|
-
container,
|
|
211
|
+
container: providedContainer,
|
|
212
212
|
anchor,
|
|
213
213
|
editorElement,
|
|
214
214
|
id,
|
|
@@ -224,6 +224,12 @@ export function MentionSuggestions({
|
|
|
224
224
|
loadMore,
|
|
225
225
|
hasMore,
|
|
226
226
|
}: Props) {
|
|
227
|
+
// Stay inside the editor's modal boundary so its focus scope and pointer
|
|
228
|
+
// guard treat a candidate click as an interaction within that modal.
|
|
229
|
+
const container =
|
|
230
|
+
providedContainer ||
|
|
231
|
+
editorElement.closest<HTMLElement>('[role="dialog"], [role="alertdialog"]') ||
|
|
232
|
+
document.body;
|
|
227
233
|
const panel = React.useRef<HTMLDivElement>(null);
|
|
228
234
|
const list = React.useRef<HTMLDivElement>(null);
|
|
229
235
|
const initialLoading = loadingInitial ?? (loading && !items.length);
|