If an atom is partially charged because it is part of a polar molecule or fully charged because it is part of an ionic compound, then similar charges will actually repel, overcoming the weak London dispersion attraction.