downshift version: 1.31.2node version: 8.11.1npm (or yarn) version: yarn 1.5.0Relevant code or config
https://codesandbox.io/s/9rWEmzEv8 (downshift demo by @kentcdodds)
What you did/What happened:
On desktop:
On mobile:
Reproduction repository:
https://codesandbox.io/s/9rWEmzEv8
Problem description:
I'm not sure this is intended? Or is it, to prevent fat fingering?
Suggested solution:
Close the menu onTapOutside if that is what we want
Thanks for this awesome package!
It looks like this occurs on iOS. It's due to the blur event not being triggered when you tap outside of the menu. Problem is that I have a feeling this is how focus events are intended to work on iOS.
The only solution I can think of is is to add a touchstart listener to check if the dropdown has been unfocused.
This was actually resolved and released: https://github.com/paypal/downshift/pull/425
I forgot to close it.
Hey @kentcdodds. I think this is a separate issue to the one I resolved in that PR.
Oh, you're right. Sorry about that 馃槄
The only solution I can think of is is to add a touchstart listener to check if the dropdown has been unfocused.
I'd be happy to look at a PR for this. Thanks!
Alrght I will take a look when I have some time!
@kentcdodds This can be closed now 馃榿. Resolved in #429
Just upgraded and tested, works like a charm :+1: Thanks a lot!
Most helpful comment
Just upgraded and tested, works like a charm :+1: Thanks a lot!