From aa6b55be7e6b87e679feff4797f81e390beb2d3f Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 31 Jul 2018 16:40:48 +0800 Subject: [PATCH] clean up unused code --- components/input/Input.tsx | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/components/input/Input.tsx b/components/input/Input.tsx index fb3a529c31..67e80a93c7 100644 --- a/components/input/Input.tsx +++ b/components/input/Input.tsx @@ -128,25 +128,16 @@ export default class Input extends React.Component { // Need another wrapper for changing display:table to display:inline-block // and put style prop in wrapper - if (addonBefore || addonAfter) { - return ( - - - {addonBefore} - {React.cloneElement(children, { style: null })} - {addonAfter} - - - ); - } return ( - - {addonBefore} - {children} - {addonAfter} + + + {addonBefore} + {React.cloneElement(children, { style: null })} + {addonAfter} + ); }