-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[RNMobile][Embed block] Fix URL not editable after dismissing the edit URL bottom sheet with empty value #35460
Conversation
Size Change: 0 B Total Size: 1.07 MB ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for these changes @fluiddot I utilized the referenced issue to verify that the bug existed on develop
. After switching to this branch, I was able to verify that this fix works as expected by executing the test plan and observing the correct behavior of the embed bottom sheet. LGTM 🚢
# Conflicts: # packages/react-native-editor/CHANGELOG.md
Gutenberg Mobile PR: wordpress-mobile/gutenberg-mobile#4094
Description
Previously, the
EmbedBottomSheet
component wasn't triggering theonSubmit
handler when the current URL is empty and no value is set. Originally this wasn't an issue but with the changes from wordpress-mobile/gutenberg-mobile#4002, now we rely on theonSubmit
notification to determine if the URL is being edited, if it's not triggered, then the block gets locked in a state that prevents theEmbedBottomSheet
to be shown again.This PR basically assures that
onSubmit
is triggered in every case, including when the current URL is empty and no value is set.How has this been tested?
Dismissing with empty URL
Dismissing with invalid URL
http://?
)Screenshots
embed-block-set-empty-url.mp4
Types of changes
Bug fix
Checklist:
*.native.js
files for terms that need renaming or removal).