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

Tip Modal: Don't do final submit when the intention is to create New Channel. #4629

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

infinite-persistence
Copy link
Contributor

Issue

Fixes #4544 Channel-creation in "Tip|Support" Modal shouldn't submit LBC immediately

Changes

Form seems to have already tried to stop the propagation of onSubmit, so I'm not sure why it was still propagated.

Fix by using the same method used in the CommentCreate, which is simply to check for CHANNEL_NEW as the current selection.

…Channel.

## Issue
Fixes `4544 Channel-creation in "Tip|Support" Modal shouldn't submit LBC immediately`

## Changes
`Form` seems to have already tried to stop the propagation of `onSubmit`, so I'm not sure why it was still propagated.

Fix by using the same method used in the `CommentCreate`, which is simply to check for `CHANNEL_NEW` as the current selection.
@neb-b neb-b force-pushed the ip-tip-modal-new-channel-4544 branch from 30f9247 to d4e3e6b Compare August 5, 2020 17:01
@neb-b neb-b merged commit c75bab5 into master Aug 5, 2020
@neb-b neb-b deleted the ip-tip-modal-new-channel-4544 branch August 5, 2020 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Channel-creation in "Tip|Support" Modal shouldn't submit LBC immediately
2 participants