diff --git a/package.json b/package.json index 03e58bd..7ff531c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-numeric-input", - "version": "2.0.7", + "version": "2.0.8", "description": "Number input component that can replace the native number input which is not yet very well supported and where it is, it does not have the same appearance across the browsers. Additionally this component offers more flexible options and can be used for any values (differently formatted representations of the internal numeric value).", "main": "index.js", "scripts": { @@ -60,6 +60,7 @@ "webpack": "^1.12.2" }, "peerDependencies": { - "react": ">=0.14.0 || ^15.2.1" + "react": ">=0.14.0 || ^15.2.1", + "prop-types": "^15.5.8" } } diff --git a/src/NumericInput.jsx b/src/NumericInput.jsx index 93d4e7c..be1a63c 100644 --- a/src/NumericInput.jsx +++ b/src/NumericInput.jsx @@ -1,5 +1,6 @@ // @flow -import React, { PropTypes, Component } from "react" +import React, { Component } from "react" +import PropTypes from 'prop-types' const KEYCODE_UP = 38; const KEYCODE_DOWN = 40;