Timothy Jaeryang Baek 3 周之前
父節點
當前提交
56a8973fa0
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/lib/components/common/RichTextInput/suggestions.ts

+ 3 - 0
src/lib/components/common/RichTextInput/suggestions.ts

@@ -76,6 +76,9 @@ export function getSuggestionRenderer(Component: any, ComponentProps = {}) {
 
 				if (container?.parentNode) container.parentNode.removeChild(container);
 				container = null;
+
+				if (refEl?.parentNode) refEl.parentNode.removeChild(refEl);
+				refEl = null;
 			}
 		};
 	};