Preserve passed-in dialog.dialogClass classes.