Five public school teachers Monday filed a proposed class action against the California Teachers Association and their local labor union affiliates, alleging that school districts continue charging them union dues even though they are no longer members.

The educators, including one from Hayward and one from Fremont, said in a complaint filed in San Francisco federal district court that they weren’t told they could opt out of joining the local teachers unions. When the teachers later resigned their memberships, they say union leaders told them they had to continue paying dues until a specified withdrawal period arrived.