Apart from when it voted for the People 's Party candidate in its first election in 1892 , Idaho has voted for a major party candidate in each subsequent election ; voting Democrat ten times , and Republican 22 times .