When a shape is selected one of the properties can be expanded. If the shape is deleted the properties remains expanded.  Any expanded properties should collapse after a shape is deleted.