Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Fix/react 16 update #207

Open
wants to merge 86 commits into
base: master
Choose a base branch
from

Conversation

brewsoftware
Copy link

This relates to a split in the latest React framework. In React > 15.5 the "PropTypes" library has been broken out of the core framework. In the latest react version 16.0 this means that PropTypes needs to be explicitly imported.

15.5
import React from 'react'

React.PropTypes.func.isRequired

16.0
import React from 'react'
import PropTypes from 'prop-types'

PropTypes.func.isRequired

camjackson and others added 30 commits November 19, 2015 16:31
Added support for custom ref for input field
Support for minDate and maxDate for months and years calendar.
BARRY-78 adding ability to pass displayformat for datetime.
walid-halabi-myob and others added 27 commits November 3, 2016 16:55
Initialise the value to dateTime even with defaultText set
Fixed readme on point the library locally
…the date to be EMPTY. So after the fix, when you set the dateTime prop to be null/empty string, the datePicker field will show empty value ( with placeholder text).But if you set the dateTime=undefined, it will show today’s date.
…e through navigation bar, then come back, the panel for showing the days will be NaN, user could not select any date again
TITAN-335: do not format inputValue when onChange
…ke an existing Moment instance as an alternative to a string. This means that it can be used in situations where you need to keep all your Moment instances in UTC mode. A string may still be provided, and in that case there should be no change in behaviour.
…alue

Accept an existing Moment as the initial value
@elhay-av
Copy link

elhay-av commented Feb 4, 2018

Someone going to merge this PR?

@chollier
Copy link
Member

chollier commented Feb 4, 2018

no, there is a pretty big notice on the front page in case you missed it: https://github.com/quri/react-bootstrap-datetimepicker#%EF%B8%8F-deprecated-react-bootstrap-datetimepicker

@guioconnor
Copy link

It wouldn't be a bad idea to re-publish the package with the deprecation notice, the NPM page doesn't hint at it being deprecated and 27K downloads/month suggest people really are missing the message.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet