New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AutoComplete] Fix ghost clicks on new requests #6907
Conversation
@amangeot Your change is causing tests to fail. Could you take a look? Thanks! |
@@ -266,6 +266,9 @@ class AutoComplete extends Component { | |||
}; | |||
|
|||
handleItemTouchTap = (event, child) => { | |||
// Prevent ghost clicks | |||
event.preventDefault(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about exposing a property so it can be implemented on userspace. I'm worried about the side effects here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm working on a similar pull request for #6938 and I'm wondering if you could be a little clearer what you mean here? Would you mean doing something like passing the event
object to the exposed onNewRequest
property?
Yes it sounds better adding a I'll try to push an update as soon as I can |
I feel like the best API would be the one already exposed by the Menu Also, I'm wondering if a previously added |
@oliviertassinari ah oh I think I see what you mean there. I'm not sure what kind of time @amangeot has, but I think I understand what you're saying and if I find a few minutes this weekend I might make a go of fixing this. Same for #6938 Would a good PR then also update the docs? |
I'm closing the pull request as has been inactive for some time. I believe that we do no longer have the issue on the next branch as we migrated away from react-tap-event-plugin. |
Fixes ghost clicks happening when touch tapping
AutoComplete
's menu items on iOS touch devices.The ghost clicks could lead to unexpected navigation with items underneath the
AutoComplete
's menu items