Mayor Ivy Taylor has faced a social-media backlash this week over her statement criticizing police officers for wearing Donald Trump campaign caps during the Republican presidential candidate's visit to San Antonio.

On Tuesday night, Taylor posted a statement on Facebook that criticized the officers for apparently taking sides in a political battle while they were on duty.

"I am deeply disappointed by some of our SAPD officers' lack of judgment," Taylor wrote. "While on duty, police must be above politics with an obligation to serve everyone equally. Everything they do should send that message and today's actions did not."

Taylor's statement was consistent with one released earlier that day by Police Chief William McManus, but the mayor encountered vitriolic responses from Facebook followers who argued she should have stayed out of the situation.

Some Trump supporters – who said they backed Taylor for mayor in 2015 -- even accused her of being biased toward Trump's opponent, Hillary Clinton.

Joel Leonardo Arroyo wrote, "I can't wait to vote you out. I will be recruiting people to vote for your opponent."

Daniel Rodriguez wrote, "Ivy, you won't get elected again!! I voted for you over Leticia" Van de Putte. He added, "I'm extremely disappointed in you and for attacking good officers based on your hitlery choice." The "hitlery choice" was an apparent reference to Clinton.

Taylor has stayed out of the presidential race, and made a point of correcting a Clinton campaign press release last year that mistakenly included her on a list of Clinton's Texas supporters.