In some conditions, the media modal state isn't being properly reset after editing a post element.
One way of reproducing this issue:
In a new post, insert a post element.
Click on the post element to select it and click the pencil icon to edit the shortcode
Dismiss the media frame by clicking the "X" link to close the modal.
Move the cursor to a different spot in the editor so nothing is selected.
Click the "Add Post Element" button to add a new post element. The state of the previously selected post element is shown, with no way to switch out to a different shortcode.
As noted in https://github.com/wp-shortcake/shortcake/issues/723#issuecomment-297661591:
In some conditions, the media modal state isn't being properly reset after editing a post element.
One way of reproducing this issue: