Uploaded image for project: 'Planet4'
  1. Planet4
  2. PLANET-6436

Take Action Boxout in post causes warnings when closing or reloading a tab even if the post has no changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Should have Should have
    • 2.65.0
    • None
    • 3
    • Block: Take Action
    • Sprint #170
    • pluto

      Because the block attributes are updated in render, opening a post which has a take action boxout block will trigger a warning when you try to navigate away from the editor. This is contrary to the normal behavior where WP can detect no edits were made and the user doesn't get a prompt on closing unless the post has changes.

      Instead the attributes should only get updated once the block is being manually updated. The attributes don't need to be updated because our code is written to handle content that was not updated yet. Updating them when you only open the post has no benefits, and only causes this UX blocking warning.

        

            pvincent Pieter Vincent
            pvincent Pieter Vincent
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: