From 61070c9c6b665fdea79b3ccdfeafc3a6b50d262e Mon Sep 17 00:00:00 2001
From: Avi Ziv <AVIZI@amdocs.com>
Date: Wed, 26 Jul 2017 17:37:57 +0300
Subject: [SDC] Full OnBoard health-check and NFoD support

Change-Id: I606f8a52c7e6d2bd5558f824957d890e552c5423
Signed-off-by: Avi Ziv <avi.ziv@amdocs.com>
---
 openecomp-ui/src/nfvo-components/datepicker/Datepicker.jsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'openecomp-ui/src/nfvo-components/datepicker/Datepicker.jsx')

diff --git a/openecomp-ui/src/nfvo-components/datepicker/Datepicker.jsx b/openecomp-ui/src/nfvo-components/datepicker/Datepicker.jsx
index cd39376bda..f4673c1c93 100644
--- a/openecomp-ui/src/nfvo-components/datepicker/Datepicker.jsx
+++ b/openecomp-ui/src/nfvo-components/datepicker/Datepicker.jsx
@@ -17,10 +17,10 @@ class CustomInput extends React.Component {
 		const text = date ? date : placeholderText;
 		const textStyle = date ? '' : 'placeholder';
 		return (
-			<div ref={inputRef} className='datepicker-custom-input'>
-				<div onClick={onClick} className={`datepicker-text ${textStyle}`}>{text}</div>
-				<div onClick={onClear} className='clear-input'/>
-				<SVGIcon onClick={onClick} name='calendar'/>
+			<div onClick={onClick} ref={inputRef} className='datepicker-custom-input'>
+				<div  className={`datepicker-text ${textStyle}`}>{text}</div>
+				{date && <SVGIcon onClick={e => {e.stopPropagation(); onClear();}} name='close' className='clear-input'/>}
+				<SVGIcon name='calendar'/>
 			</div>
 		);
 	}
-- 
cgit 1.2.3-korg

