We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using DatePicker component within redux-form

Thread ID:

Created:

Updated:

Platform:

Replies:

145990 Jul 16,2019 08:11 PM UTC Jul 17,2019 01:30 PM UTC React - EJ 2 1
loading
Tags: DatePicker
Brett Simmonds
Asked On July 16, 2019 08:11 PM UTC

I am trying to implement a redux-form datepicker, but running into issues with the date selection. When I initialize the form, the date is defaulted to the current date which is rendering within the form correctly. 


When I select a date, however, this input value of the form becomes:


This is the component that is passed into the Field component for redux form (which monitors the value based on the name):
<DatePickerComponent
navigated={(e) => console.log(e)}
id={props.id}
className={props.className}
disabled={props.disabled}
{...props.input} />

Is there a way for the date selection event to only emit a simple value?

Ashokkumar Balasubramanian [Syncfusion]
Replied On July 17, 2019 01:30 PM UTC

 
Good day to you. 
 
We have analyzed your provided code block and query at our end. We suspect that, you are expected to emit the event arguments in DatePicker, but currently we have not provided the select event in DatePicker. So, could you please provide the below details? 
 
a.     Which scenario, you don’t want those arguments in DatePicker 
b.     Update the reason for emitting the arguments in DatePicker events, because if you don’t want the event arguments, you can skip and use it.  
c.      Event details  
If we misunderstood your requirement, please share the more details or clarify the scenario with screenshot or videos. 
 
Regards, 
Ashokkumar B. 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon