Here in the UK the price of petrol has gone up more than 50% in the past 20 years. So long as electricity is increasing in price more slowly its still more attractive as a fuel source.
I imagine that has more to with taxes than anything else. Adjusted for inflation, petroleum is quite low compared to it's price over much of the last 3-4 decades.
The underlying cause doesn't make any difference to the consumer though. If you're saying people don't want electric cars because the cost of electricity is increasing you have to weigh that against the cost of alternatives, and electricity is still better.