Flirting and hitting on are two different things. There are some men I flirt with because I know they are "safe". It is just casual flirting among friends. We both know it is not going to go anywhere. And I have been married for 19 years.
If they are actually hitting on someone else, then they are not taking the relationship seriously and you should consider moving on.