From 2a01ebee8472fa944bf05a8e2cdc02566946ced1 Mon Sep 17 00:00:00 2001 From: Ray Schamp Date: Thu, 26 May 2016 15:59:55 -0400 Subject: [PATCH] Fix search button display Update search form submit button from an input[type=submit] to a button. React 15 omits the value prop if it's blank, so the `` was rendered as ``. This caused the input to display the default value of "Submit". The button element is more appropriate for this behavior and doesn't have the missing value issue. --- src/components/navigation/www/navigation.jsx | 3 +- src/components/navigation/www/navigation.scss | 34 +++++++++++-------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/src/components/navigation/www/navigation.jsx b/src/components/navigation/www/navigation.jsx index ffeaf21d3..654b242a1 100644 --- a/src/components/navigation/www/navigation.jsx +++ b/src/components/navigation/www/navigation.jsx @@ -9,6 +9,7 @@ var sessionActions = require('../../../redux/session.js'); var Api = require('../../../mixins/api.jsx'); var Avatar = require('../../avatar/avatar.jsx'); +var Button = require('../../forms/button.jsx'); var Dropdown = require('../../dropdown/dropdown.jsx'); var Input = require('../../forms/input.jsx'); var log = require('../../../lib/log.js'); @@ -215,7 +216,7 @@ var Navigation = React.createClass({
  • - +