From bbe5ec8e98f5dab7e21fab5786ea5965e03712aa Mon Sep 17 00:00:00 2001 From: Pritish Budhiraja Date: Mon, 8 Jul 2024 14:36:16 +0530 Subject: [PATCH] fix: shouldCloseOnSelect added --- src/Payments/DateOfBirth.res | 1 + src/libraries/DatePicker.res | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Payments/DateOfBirth.res b/src/Payments/DateOfBirth.res index e53d31825..db8ef7178 100644 --- a/src/Payments/DateOfBirth.res +++ b/src/Payments/DateOfBirth.res @@ -57,6 +57,7 @@ let make = () => { onChange={date => setSelectedDate(_ => date)} dateFormat="dd-MM-yyyy" wrapperClassName="datepicker" + shouldCloseOnSelect=true placeholderText="Enter Date of Birth" renderCustomHeader={val => {
diff --git a/src/libraries/DatePicker.res b/src/libraries/DatePicker.res index 2bebcee34..13a3205cc 100644 --- a/src/libraries/DatePicker.res +++ b/src/libraries/DatePicker.res @@ -31,4 +31,5 @@ external make: ( ~className: string=?, ~wrapperClassName: string=?, ~closeOnScroll: bool=?, + ~shouldCloseOnSelect: bool=?, ) => React.element = "default"