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

Upgrade react-datetime to 3.0.0 #5956

Merged
merged 3 commits into from May 5, 2021

Conversation

alexander-schranz
Copy link
Member

@alexander-schranz alexander-schranz commented Apr 23, 2021

Q A
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Fixed tickets fixes #
Related issues/PRs #
License MIT
Documentation PR sulu/sulu-docs#

What's in this PR?

Upgrade react-datetime to 3.0.0. https://github.com/arqex/react-datetime/blob/master/migrateToV3.md.

There is a problem currently with the 3.0 version as it seems not to close the overlay when choosing the time: arqex/react-datetime#741 (comment)

Why?

New version provide bugfixes and new features.

@@ -80,6 +80,16 @@ class DatePicker extends React.Component<Props> {
this.props.onChange(date);

this.setShowError(!!this.value && !date);

// can be removed when is fixed the following is fixed:
// https://github.com/arqex/react-datetime/pull/741
Copy link
Contributor

Choose a reason for hiding this comment

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

i guess we can remove the closeOnSelect if we implement it like this 🙂

@niklasnatter
Copy link
Contributor

I dont think arqex/react-datetime#741 will ever be fixed, so I would be okay with implementing the workaround for closing the Popover 🙂

@alexander-schranz alexander-schranz added the DX Affecting the end developer label Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Affecting the end developer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants