Although the 28-year-old was trying to be relatable, many found her remark "problematic."
Modern Family will soon be part of TV history. The family comedy will be ending after Season 11.
The star bravely opened up in an interview with Ellen DeGeneres.
The 28-year-old actress is one of many battling the mental health effects of physical illness.