There are certain traits that you might not expect to be genetic. One of those things being sneezing when you see bright lights. Although it is harmless, it is a very interesting trait to have and also pretty common. This symptom comes from the Photic sneeze reflex which is known as ACHOO syndrome.
ACHOO syndrome is inherited in an autosomal dominant manner. This means that there only needs to be one mutated gene. If one parent has this trait, there is a 50% likely chance that their child will have this trait as well. Although it is not known what directly what causes this because sneezing as we know it is due to infections or irritants, but bright lights will not classify as either of those things. But it is a common thig. In fact, almost 15% to 30% of people sneeze due to light exposure. Studies show that this trait is mostly seen in Caucasian females.
If you notice that you sneeze due to light exposure or specifically if you look up at the sun, there is not needed to panic. it is a common, harmless trait to have. If you do sneeze in light, some recommend doing an experiment with your family in order to see if they will sneeze as well. It should not come as if either of your parents do this because it is inherited!
Links:
ACHOO Syndrome - Medical Genetics Summaries - NCBI Bookshelf
Why Does the Sun Make Some People Sneeze? - FOCUS