It's a curious own goal by Musk. I would imagine that Tesla have pretty detailed profile data on the average Tesla customer.
Surely there were pretty clear signals that a significant number of those people would vote with their wallets based on his politics.