To eliminate bad breath while eating onions, you can consume the following foods:
Coffee beans
Coffee has a strong taste made by coffee beans. This coffee bean powder has a slightly stronger taste and odor reflex to ward off the smell of onions. You can chew the coffee beans for a while so that the smell of the onion goes from your mouth.