Store leftover diced onion in an airtight container in the refrigerator to keep it fresh and prevent it from absorbing any unwanted flavors or odors.