From 81209c70c30ed29724be222254ee1c7379be1690 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 2 Dec 2015 15:55:02 +0800 Subject: [PATCH] Fix input & input-group wrapper tag --- components/input/index.jsx | 9 +++++---- style/mixins/input.less | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/input/index.jsx b/components/input/index.jsx index 6094923abe..13159fd225 100644 --- a/components/input/index.jsx +++ b/components/input/index.jsx @@ -17,9 +17,10 @@ function ieGT9() { class Group extends React.Component { render() { return ( -
+ {this.props.children} -
+ ); } } @@ -52,11 +53,11 @@ class Input extends React.Component { ) : null; return ( -
+ {addonBefore} {children} {addonAfter} -
+ ); } diff --git a/style/mixins/input.less b/style/mixins/input.less index f313820175..17fb9c7211 100644 --- a/style/mixins/input.less +++ b/style/mixins/input.less @@ -152,7 +152,7 @@ } // Reset rounded corners - > div > .@{inputClass}:first-child, + > span > .@{inputClass}:first-child, > .@{inputClass}:first-child, &-addon:first-child { border-bottom-right-radius: 0;