react+antd出现preventDefault()警告报错

react项目遇到如下报错:

This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the method `preventDefault` on a released/nullified synthetic event. This is a no-op function. If you must keep the original synthetic event around, use event.persist()

解决方法:

把e.preventDefault()方法,换成e.persist();

你可能感兴趣的:(react,antd)