Avoiding the avoidant

How do you deal with avoiding your ex?
Do you just not go to events where they might be all together or how do you cope?