Friday, July 12, 2024
HomeiOS Developmentreact-native ios accomplished button in chrome not triggering occasion onSubmitEditing

react-native ios accomplished button in chrome not triggering occasion onSubmitEditing


In Chrome on ios when shopping a react-native web site with a
there are two buttons ‘Finished’ above the keyboard and the ‘Enter’ key on the underside proper,
each ought to set off ‘onSubmitEditing’ however solely the enter key works in chrome on an ios machine

<TextInput 
   ref={inputRef}
   model={kinds.SearchInputMob} 
   multiline={false}
   placeholder="Key phrase..."
   placeholderTextColor="gray"
   onFocus={()=>setKeyVisable(true)}
   onBlur={()=>handleBlur()}
   onSubmitEditing={()=>handleBlur()}
   onChangeText={handleInputChange}
                            
   worth={searchText}
/>

In safari each buttons set off ‘onSubmitEditing’
any concepts I’ve tried including a bunch of various ‘onXXXX’ triggers however none appear to set off on ios utilizing chrome when urgent the ‘Finished’ button above the keyboard.

The explanation I am engaged on that is my handleBlur operate units the state of the keyboard (setKeyVisable(false))
which controls whether or not or not the location rescales – ie I do not need the location to resize when the keyboard is energetic



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments