Commit 9837ffb9 authored by 武广's avatar 武广

fix: 销毁定时器

parent 3c2022ae
...@@ -138,7 +138,8 @@ export const CreateFormInput = props => { ...@@ -138,7 +138,8 @@ export const CreateFormInput = props => {
placeholder={`请输入${title}`} placeholder={`请输入${title}`}
onBlur={e => { onBlur={e => {
const inputTarget = e.target; const inputTarget = e.target;
setTimeout(() => { const timer = setTimeout(() => {
clearTimeout(timer);
onBlurEvent(inputTarget.value, dataIndex, rowIndex); onBlurEvent(inputTarget.value, dataIndex, rowIndex);
}, 10); }, 10);
}} }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment