react-router-navigation-prompt
Advanced tools
Comparing version 1.5.0 to 1.5.1
{ | ||
"name": "react-router-navigation-prompt", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A replacement component for the react-router `<Prompt/>`. Allows for more flexible dialogs.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -79,3 +79,3 @@ /* @flow */ | ||
action = { | ||
'POP': 'goBack', | ||
'POP': 'push', | ||
'PUSH': 'push', | ||
@@ -88,7 +88,3 @@ 'REPLACE': 'replace' | ||
this.state.unblock(); | ||
if (action === 'goBack') { | ||
history.goBack(); | ||
} else { | ||
history[action](nextLocation.pathname); | ||
} | ||
history[action](nextLocation.pathname); | ||
this.setState({ | ||
@@ -95,0 +91,0 @@ ...initState, |
Sorry, the diff of this file is too big to display
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
406073
9759