foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.65k stars 5.48k forks source link

Drilldown component disappears when clicking very fast #12399

Open jeremycharron opened 2 years ago

jeremycharron commented 2 years ago

What should happen?

The drilldown component should always be visible.

What happens instead?

The drilldown component disappears and you need to reload the page to use it again. Both parent and children are stuck with the invisible class. image

Possible Solution

Only one element should have invisible class Perhaps the animation should be done before we can click again

Test Case and/or Steps to Reproduce (for bugs)

You can actually reproduce on the official website : https://get.foundation/sites/docs/drilldown-menu.html#

How to reproduce:

  1. Click repeatedly and very quickly on an item and the back button in the drilldown component

foundation

Context

It's quite easy to reproduce when the speed of the animation is a little bit slower, which is the case in our project.

Your Environment

Checklist

joeworkman commented 2 years ago

I have to click really fast to trigger this. Unpractically fast. I am open to PRs if you have the time.