react-stepzilla
Advanced tools
Comparing version 1.5.0 to 1.6.0
@@ -102,3 +102,5 @@ 'use strict'; | ||
if (evt.which === 13) { | ||
this._next(); | ||
if (!this.props.preventEnterSubmission) { | ||
this._next(); | ||
} | ||
} | ||
@@ -235,3 +237,4 @@ } | ||
prevBtnOnLastStep: true, | ||
dontValidate: false | ||
dontValidate: false, | ||
preventEnterSubmission: false | ||
}; |
{ | ||
"name": "react-stepzilla", | ||
"version": "1.5.0", | ||
"version": "1.6.0", | ||
"description": "A react multi-step, wizard component for managing data collection via forms and sub components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/main.js", |
@@ -55,2 +55,5 @@ # react stepzilla | ||
// by default if you hit the Enter key on any element it validates the form and moves to next step if validation passes. Use this to prevent this behaviour | ||
preventEnterSubmission: true | false | ||
``` | ||
@@ -80,4 +83,6 @@ | ||
#### change log | ||
- 1.6.0 | ||
- added preventEnterSubmission option to prevent moving to next step if enter is hit | ||
- 1.5.0 | ||
- update to improve showSteps. prevent UI elements from completed rendering | ||
- update to improve showSteps. prevent UI elements from completed rendering | ||
- 1.4.0 | ||
@@ -84,0 +89,0 @@ - added the option showSteps which hides the top steps if needed |
@@ -76,3 +76,5 @@ import React, { Component, PropTypes } from 'react'; | ||
if (evt.which === 13) { | ||
this._next() | ||
if (!this.props.preventEnterSubmission) { | ||
this._next(); | ||
} | ||
} | ||
@@ -182,3 +184,4 @@ } | ||
prevBtnOnLastStep: true, | ||
dontValidate: false | ||
dontValidate: false, | ||
preventEnterSubmission: false | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65762
554
94