DEV Community

loading...

Discussion on: CSS focus powered dropdown menu

Collapse
swizzard profile image
sam

It doesn't seem to work on ios chrome?

Collapse
dailydevtips1 profile image
Chris Bongers Author

You are right Sam!

For ios we would need to add something like this to the button:

onclick="this.focus()"
Enter fullscreen mode Exit fullscreen mode

But then we are using JS again, and it won't re-close the menu with this.

Collapse
swizzard profile image
sam

well that's a bummer--there's no shim or any other option?

Thread Thread
dailydevtips1 profile image
Chris Bongers Author

Hey Sam, unfurtionally not that I know off, someone else might know, I'll do some more research on how to fix this for iOS stable.