From 4fddb986e57bc864b6d125ca335a462d13410dfd Mon Sep 17 00:00:00 2001 From: zhangzhen <525765282@qq.com> Date: Fri, 4 Jul 2025 10:07:40 +0800 Subject: [PATCH] 处理不需要防抖时输入中文消失问题; --- src/components/Common/CommonComponent/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Common/CommonComponent/index.js b/src/components/Common/CommonComponent/index.js index 19efad3..9adc491 100644 --- a/src/components/Common/CommonComponent/index.js +++ b/src/components/Common/CommonComponent/index.js @@ -135,7 +135,7 @@ export default class CommonComponent extends Component { const selectInputNode = currentNode.querySelector("input[class*='ant-select-selection-search-input']"); const antInput = currentNode.querySelector("input[class*='ant-input']"); const oInput = selectInputNode || antInput; - if (oInput) { + if (oInput && !this.props.noDebounce) { oInput.addEventListener("compositionstart", () => { this.chineseInputting = true; }); -- libgit2 0.22.2