Automattic / jetpack

Security, performance, marketing, and design tools β€” Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.59k stars 799 forks source link

WhatsApp Block: issues when removing child button block #25105

Open nagpai opened 2 years ago

nagpai commented 2 years ago

Quick summary

The WhatsApp button block creates a send message block with a WhatsApp button block nested within it.

When a user tries to delete the block it reappears on reload of editor. Because of the UI of gutenberg, users typically end up deleting the Button block and not the parent send message block that remains invisible. The whatsapp button gets added again

Steps to reproduce

  1. Create a new page or post
  2. Add WhatsApp block and save changes.
  3. Reload browser, and click and delete the whatsapp button. It removes the button. Save changes. There is no indication of the parent Send a message block being still active.
  4. Reload the browser, the button reappears.

Uploading whatsapp-bug.mov…

What you expected to happen

Ideal case - The parent Send a message block should get deleted when someone deletes the whatsapp button.

Next-to-ideal : Show a dummy block in editor that the Send message block is still present.

What actually happened

Described in the video and details above.

Context

36020401-hc

Simple, Atomic or both?

Simple, Atomic

Theme-specific issue?

No response

Browser, operating system and other notes

MacOS - Vivaldi 5.3.2679.68

( happens across different browsers though )

Reproducibility

Consistent

Severity

Some (< 50%)

Available workarounds?

Yes, difficult to implement

Workaround details

Use the list view and delete the parent Send a message block

Robertght commented 2 years ago

πŸ“Œ HOUSEKEEPING

πŸ“Œ SCRUBBING

πŸ“Œ FINDINGS/SCREENSHOTS/VIDEO

Using the List view should help the users remove that block entirely.

πŸ“Œ ACTIONS

πŸ“Œ Message to Author

github-actions[bot] commented 2 years ago

Support References

jeherve commented 2 years ago

Yup, that's the same issue indeed. I'll close the other one since there are more details here.

jeherve commented 2 years ago

Related: #24838

Additional info from #18104:


References:


this happens because you're deleting the child block, and not the parent block. Here is how I would go about it:

videopress.com/v/pYqlck4o

That's an annoying byproduct of parent / child blocks.