# Thermodynamics - dependence of molar fraction on temperature

Why does the molar fraction of a solution not depend on temperature?

In other words, why will heating a solution preserve its composition? It seems to me that if I have two substances that evaporate at different rates, the substance with the faster evaporation rate will pass more moles into the gas phase, so the proportions of the substances in the solution should not be preserved.