Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: useFormAction should not include pathless splat portion #9144

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

brophdawg11
Copy link
Contributor

Follow up to correct a small misunderstanding on #9060 after chatting through with Chance and Ryan a bit more.

@changeset-bot
Copy link

changeset-bot bot commented Aug 10, 2022

🦋 Changeset detected

Latest commit: ee3ab78

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
react-router-dom Patch
react-router Patch
react-router-dom-v5-compat Patch
react-router-native Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@brophdawg11 brophdawg11 force-pushed the brophdawg11/fix-splat-useFormAction branch from 0a0f647 to b43374d Compare August 10, 2022 20:16
@@ -1493,11 +1493,11 @@ function testDomRouter(
);

expect(container.querySelector("form")?.getAttribute("action")).toBe(
"/foo/bar?a=1#hash"
"/foo?a=1#hash"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the misunderstanding - splat portion should not be included here for now to match Link behavior

@brophdawg11 brophdawg11 merged commit 6fef589 into dev Aug 10, 2022
@brophdawg11 brophdawg11 deleted the brophdawg11/fix-splat-useFormAction branch August 10, 2022 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants