You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the SearchBar component and am using the onSubmitEditing to submit the search. I also have an onCancel event that calls a goBack method to close the screen (it's a modal view of React Navigation).
Expected behavior (Required)
I would expect that when I hit the "go" button on the keyboard the onSubmitEditing would fire and I would expect that when I hit the "cancel" button, the onCancel method would fire once.
Describe the bug (Required)
When I hit the "go" button, onCancel is called. Less impactful but still worth nothing, when I hit the "cancel" button, onCancel fires twice.
To Reproduce (Required)
We highly recommend that you re-create the bug on Snack. If not, list the steps that a reviewer can take to reproduce the behaviour:
Explain what you did (Required)
I'm using the
SearchBarcomponent and am using theonSubmitEditingto submit the search. I also have anonCancelevent that calls agoBackmethod to close the screen (it's a modal view of React Navigation).Expected behavior (Required)
I would expect that when I hit the "go" button on the keyboard the
onSubmitEditingwould fire and I would expect that when I hit the "cancel" button, theonCancelmethod would fire once.Describe the bug (Required)
When I hit the "go" button,
onCancelis called. Less impactful but still worth nothing, when I hit the "cancel" button,onCancelfires twice.To Reproduce (Required)
We highly recommend that you re-create the bug on Snack. If not, list the steps that a reviewer can take to reproduce the behaviour:
Screenshots (Required)
screen-recording.mov
Your Environment (Required):
Mac BigSur 11.0
3.1.00.63.4