我正在使用react-final-form,其中当从输入字段中模糊掉时,我将进行后Web API调用。这在Chrome / IE中可以正常运行,但在iOS上不会触发。
我浏览了《 Safari Web内容指南》: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html
但不确定要继续哪个事件
我的代码是这样的:
import {OnBlur} from "react-final-form-listeners";
<Field name={fieldName} type="number">
//INPUT BOX
</Field>
<OnBlur name={fieldName}>
//MAKE POST CALL FUNCTION HERE
</OnBlur>