wordpress-mobile / WordPress-Editor-Android

⛔️ [DEPRECATED] A reusable Android rich text editor component.
GNU General Public License v2.0
188 stars 50 forks source link

Closing or updating the editor before the post content loads erases the post title #456

Open rachelmcr opened 7 years ago

rachelmcr commented 7 years ago

Expected behavior

I expect that if I open a post to edit it, and close the editor quickly (before the post loads in the editor), no changes will be saved.

Actual behavior

If I open to edit it, and close the editor quickly (before the post loads in the editor), the post title is erased. (It shows as (Unititled) in the post list.)

Steps to reproduce

  1. Create a new post with a title and a lot of content in the post body (so it takes a little longer to load)
  2. Save or publish the post
  3. In the Blog Posts list in the app, tap "Edit" to open the post in the editor
  4. Before the post title/content loads in the editor, tap the back button to close the editor

Result: The title is erased as shows as "(Untitled)" in the post list. Opening the post in the editor again shows a blank post title.

Tested on Nexus 9, Android 7.0, WPAndroid alpha-27

rachelmcr commented 7 years ago

@hoverduck also observed that it's possible to tap Update and update the post before the content loads in the editor. In this case the title is also erased. (It seems like we should block the option to update a post until the content loads in the editor.)