Clear the widget preview when switching types.