react-router-dom-v5-compat 6.20.0 → 6.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/umd/react-router-dom-v5-compat.development.js +5 -3
- package/dist/umd/react-router-dom-v5-compat.development.js.map +1 -1
- package/dist/umd/react-router-dom-v5-compat.production.min.js +1 -1
- package/dist/umd/react-router-dom-v5-compat.production.min.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router DOM v5 Compat v6.20.
|
|
2
|
+
* React Router DOM v5 Compat v6.20.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -1072,8 +1072,10 @@ function useFormAction(action, _temp2) {
|
|
|
1072
1072
|
let path = _extends({}, useResolvedPath(action ? action : ".", {
|
|
1073
1073
|
relative
|
|
1074
1074
|
}));
|
|
1075
|
-
//
|
|
1076
|
-
//
|
|
1075
|
+
// Previously we set the default action to ".". The problem with this is that
|
|
1076
|
+
// `useResolvedPath(".")` excludes search params of the resolved URL. This is
|
|
1077
|
+
// the intended behavior of when "." is specifically provided as
|
|
1078
|
+
// the form action, but inconsistent w/ browsers when the action is omitted.
|
|
1077
1079
|
// https://github.com/remix-run/remix/issues/927
|
|
1078
1080
|
let location = useLocation();
|
|
1079
1081
|
if (action == null) {
|