From 3d7f5ee66bd2511abdb08146992028dc19f45b42 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Wed, 7 Oct 2015 22:26:57 -0400 Subject: [PATCH] Fix GH-21: toggle dropdown when clicking Sign in --- src/components/navigation/navigation.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/navigation/navigation.jsx b/src/components/navigation/navigation.jsx index 2c45a4908..77f954d3b 100644 --- a/src/components/navigation/navigation.jsx +++ b/src/components/navigation/navigation.jsx @@ -36,7 +36,7 @@ module.exports = React.createClass({ }, handleLoginClick: function (e) { e.preventDefault(); - this.setState({'loginOpen': true}); + this.setState({'loginOpen': !this.state.loginOpen}); }, closeLogin: function () { this.setState({'loginOpen': false}); @@ -129,7 +129,10 @@ module.exports = React.createClass({ ] : [
  • Join Scratch
  • ,
  • - Sign In + Sign In