Open ToyboxZach opened 2 months ago
If you have a Pressable and declare onResponderEnd
<Pressable onResponderEnd={() => { console.log("VIEW END"); }} >
Then start dragging on it and then press tab until you lose focus on it. You lose focus on it, but never have onResponderEnd get called
onResponderEnd should be called whenever you lose touch focus on the view.
Declare a pressable with onResponderEnd:
Start holding it, and then tab away
Look at the console logs, for any things that come up.
In my demo, if the object stays blue we didn't get a release.
https://codesandbox.io/p/sandbox/react-native-web-pressable-nesting-forked-n2ffv2?file=%2Fsrc%2FApp.js%3A25%2C24
Issue arose while using this package @react-native-assets/slider
What does "tab away" mean?
Ah sorry that means press tab until you have focus on something else.
Is there an existing issue for this?
Describe the issue
If you have a Pressable and declare onResponderEnd
Then start dragging on it and then press tab until you lose focus on it. You lose focus on it, but never have onResponderEnd get called
Expected behavior
onResponderEnd should be called whenever you lose touch focus on the view.
Steps to reproduce
Declare a pressable with onResponderEnd:
Start holding it, and then tab away
Look at the console logs, for any things that come up.
In my demo, if the object stays blue we didn't get a release.
Test case
https://codesandbox.io/p/sandbox/react-native-web-pressable-nesting-forked-n2ffv2?file=%2Fsrc%2FApp.js%3A25%2C24
Additional comments
Issue arose while using this package @react-native-assets/slider