diff --git a/package.json b/package.json index ac95e2f..916b569 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-form-controlled", - "version": "0.15.1", + "version": "0.15.2", "description": "React controlled form components. The main idea is to make forms as simple as possible.", "author": { "name": "Zlatko Fedor", @@ -36,32 +36,33 @@ }, "dependencies": { "diacritics": "^1.2.3", - "ajv": "~4.0.1", + "ajv": "~4.0.4", "lodash": "^4.11.1" }, "devDependencies": { - "babel-cli": "^6.7.5", - "babel-core": "^6.7.6", - "babel-eslint": "^6.0.3", + "babel-cli": "^6.7.7", + "babel-core": "^6.7.7", + "babel-eslint": "^6.0.4", "babel-plugin-transform-decorators": "^6.6.5", "babel-plugin-transform-class-properties": "^6.6.0", "babel-preset-es2015": "^6.6.0", "babel-preset-react": "^6.5.0", "babel-preset-stage-0": "^6.5.0", "babel-preset-stage-1": "^6.5.0", - "eslint": "^2.8.0", - "eslint-config-airbnb": "^7.0.0", + "eslint": "^2.9.0", + "eslint-config-airbnb": "^8.0.0", "eslint-loader": "^1.3.0", - "eslint-plugin-react": "^4.3.0", + "eslint-plugin-react": "^5.0.1", + "eslint-plugin-import": "^1.6.0", "gulp": "^3.9.1", "gulp-babel": "^6.1.2", "gulp-coveralls": "^0.1.4", "gulp-jsx-coverage": "^0.3.8", "gulp-util": "^3.0.7", - "react": "^15.0.1", - "react-addons-test-utils": "^15.0.1", - "eslint-plugin-jsx-a11y": "^0.6.2", - "react-dom": "^15.0.1", + "react": "^15.0.2", + "react-addons-test-utils": "^15.0.2", + "eslint-plugin-jsx-a11y": "^1.0.4", + "react-dom": "^15.0.2", "should": "^8.3.1", "mocha": "^2.4.5", "jsdom": "^3.1.2 || ^6.5.1" diff --git a/src/Integrate.jsx b/src/Integrate.jsx index 3aee6ca..f63a1d8 100644 --- a/src/Integrate.jsx +++ b/src/Integrate.jsx @@ -18,7 +18,6 @@ export default class Integrate extends Element { static defaultProps = { onChange: true, - value: 'value', }; render() { diff --git a/tests/input.jsx b/tests/input.jsx index 6c1b042..9d809d5 100644 --- a/tests/input.jsx +++ b/tests/input.jsx @@ -731,6 +731,23 @@ describe('Tbody', () => { }); describe('Integrate', () => { + it('should be able to create simple object', () => { + const value = { + place: 'Kosice', + }; + + const node = renderJSX( +
+ + + +
+ ); + + const ele = findDOMNode(node).querySelector('input'); + ele.value.should.equal('Kosice'); + }); + it('should be able to create object', () => { const value = { rows: [123, 456], @@ -742,8 +759,8 @@ describe('Integrate', () => { - - + +