From fe52037fc23a412d3a88252a16f1fe344bf470db Mon Sep 17 00:00:00 2001 From: Igor Octaviano Date: Thu, 6 Aug 2020 07:36:28 -0300 Subject: [PATCH] OHIF-299: Fix Study Date sorting on Study List when clicking the label (#1966) --- .../src/components/InputDateRange/InputDateRange.jsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/platform/ui/src/components/InputDateRange/InputDateRange.jsx b/platform/ui/src/components/InputDateRange/InputDateRange.jsx index 1ab06074e..1cb79e04f 100644 --- a/platform/ui/src/components/InputDateRange/InputDateRange.jsx +++ b/platform/ui/src/components/InputDateRange/InputDateRange.jsx @@ -12,12 +12,18 @@ const InputDateRange = ({ onChange, }) => { const { startDate, endDate } = value; + + const onClickHandler = (event) => { + event.preventDefault(); + onLabelClick(event); + }; + return (
{ }; + InputDateRange.defaultProps = { value: {}, + onLabelClick: noop }; InputDateRange.propTypes = {