At the moment I am trying to call a function and the formikProps in my onBlur TextInput
function at the same time.(目前,我试图同时在onBlur TextInput
函数中调用函数和formikProps。)
<TextInput
onBlur={() => {
formikProps.handleBlur('password')
setFocused(false)
}
/>
What I want to achieve:(我要实现的目标:)
When I am leaving the Textinput I change the state of isFocused to true, because I want that the styles change at this moment.(当我离开Textinput时,我将isFocused的状态更改为true,因为我希望此时样式更改。) As well my Textinput should fire handleBlur().(同样,我的Textinput应该触发handleBlur()。) But it doesn't.(但事实并非如此。)
ask by louisrtz translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…