Skip to content

[RFR] Add <DateTimeInput> - #2332

Merged
djhi merged 2 commits into
nextfrom
Datetime-input
Sep 19, 2018
Merged

djhi merged 2 commits into
nextfrom
Datetime-input

Conversation

@fzaninotto

@fzaninotto fzaninotto commented Sep 18, 2018 •

Copy link
Copy Markdown
Member

~~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
import FormField from './FormField';

export default BaseComponent => {
export default (BaseComponent, fieldProps = {}) => {

Copy link
Copy Markdown
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.

2 participants