Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFR] Add <DateTimeInput> #2332

Merged
merged 2 commits into from
Sep 19, 2018
Merged

[RFR] Add <DateTimeInput> #2332

merged 2 commits into from
Sep 19, 2018

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Sep 18, 2018

~~Due to the way <input type="datetime-local" /> works on Chrome, I had to store a local draft state and couldn't resort to redux-form's parseandformat` (see commit list).~~~

I managed to make it a stateless component thanks to redux-form's parse and format.

@fzaninotto fzaninotto added this to the 2.4.0 milestone Sep 18, 2018
@@ -1,9 +1,9 @@
import React from 'react';
import FormField from './FormField';

export default BaseComponent => {
export default (BaseComponent, fieldProps = {}) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be documented though

@djhi djhi merged commit 4d1c757 into next Sep 19, 2018
@djhi djhi deleted the Datetime-input branch September 19, 2018 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants