Commit 4fddb986e57bc864b6d125ca335a462d13410dfd

Authored by zhangzzzz
1 parent 1c53d366

处理不需要防抖时输入中文消失问题;

src/components/Common/CommonComponent/index.js
... ... @@ -135,7 +135,7 @@ export default class CommonComponent extends Component {
135 135 const selectInputNode = currentNode.querySelector("input[class*='ant-select-selection-search-input']");
136 136 const antInput = currentNode.querySelector("input[class*='ant-input']");
137 137 const oInput = selectInputNode || antInput;
138   - if (oInput) {
  138 + if (oInput && !this.props.noDebounce) {
139 139 oInput.addEventListener("compositionstart", () => {
140 140 this.chineseInputting = true;
141 141 });
... ...