Skip to content
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

Bug si on fait un double clic sur une carte #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matthieu2607
Copy link

Merci pour la formation !
En testant l'application avec ma fille, on a observé un bug quand on fait un double clique sur une carte.
Voici un correctif (sans doute pas le meilleur)

@matthieu2607 matthieu2607 changed the title - correction bug si on fait un double clic sur une carte Bug si on fait un double clic sur une carte Feb 10, 2019
@JeremyMoreauAdeo
Copy link

Personnellement, j'ai trouvé plus logique d ajouter dans la fonction handleCardClick :

if (currentPair[0] === index) {
  return
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants