Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

fix: remove nested form of linkcontrol #111

Merged
merged 2 commits into from
Aug 19, 2021
Merged

fix: remove nested form of linkcontrol #111

merged 2 commits into from
Aug 19, 2021

Conversation

nauynix
Copy link
Contributor

@nauynix nauynix commented Aug 19, 2021

Problem

Closes #110

Solution

When react was upgraded from v16 to v17, nested form elements no longer fires onSubmit. LinkControl was originally a nested form inside its rich text editor, so this PR removes the form element.
facebook/react#20741

##BEFORE

Screen.Recording.2021-08-19.at.11.49.21.AM.mov

##AFTER

Screen.Recording.2021-08-19.at.3.07.55.PM.mov

Copy link
Contributor

@LoneRifle LoneRifle left a comment

Choose a reason for hiding this comment

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

lgtm otherwise

client/src/components/RichText/LinkControl.tsx Outdated Show resolved Hide resolved
@nauynix nauynix merged commit f13cbf2 into develop Aug 19, 2021
@nauynix nauynix deleted the fix/linkcontrol branch August 19, 2021 07:28
@nauynix nauynix mentioned this pull request Aug 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adding hyperlink leads back to home page
2 participants