to be safe, 140 needs to be approved before AC21 kicks in
if you have good relationship with the 140 sponsor and they would support document regarding RFE, needless to say the pending 140 withdraw right after you leave the sponsor, then it's fine to switch employer even before 140 is approved.