CloudWatch log group disappears while editing panel

When editing a panel that is configured to show CloudWatch Logs the ‘Log Group’ field keeps clearing.
image

This makes it impossible to edit a panel once created.