This superb video is well worth watching as it follows the first two electric trials bikes to enter the 2022 SSDT.
The inevitable question is answered in the film but range was no more an issue for them than for all the petrol bikes as the batteries were swapped (a sub two minute job) at the fuel stops.
Great film, interesting to see that in a normal trial the battery will go the distance plus aiding grip at the rear wheel better than a petrol engine machine, yes interesting wouldn't mind seeing one or riding a battery trials bike