Dogmatism is a personality trait, not total inflexibility across all opinions.

Evidence

It probably should not go without saying that I am treating dogmatism as a personality variable. “Dogmatic people” generally holds their opinions with unchangeable, unjustified certainty, compared with others. That does not mean all of their opinions are held thus; it does not mean they will never change their minds; it does not mean situational pressures cannot crumple their dogmatic shell. It does not mean they will prove “inflexible” in everything they do. — Bob Altemeyer, The Authoritarian Specter, 2648