I'm not sure where you get this idea, I've noticed the opposite trend if anything. Vinyl-only singles and EPs are as common as dirt in electronic music. I could go down a list of releases, but for just one example Aphex Twin had an entire series of 11 LPs around 2005, which are vinyl-only barring a few selected tracks. I've heard that electronic/dance musicians still cut records for DJing purposes, although these days many DJs have moved on to more flexible digital systems.I try to think of an equivalent example for rock music, and I'm unable to. In fact I can only remember 2 "rock" records from this century which are vinyl-only. Both of those were short EPs.All of this evidence is 100% anecdotal so I'm not sure how useful it is. I suppose it'll also depend on which sub-genres, labels, and particular artists you pay attention to. I've just never noticed or heard anyone speak of a trend for electronic artists to stop releasing vinyl, in fact I've heard and observed the exact opposite.
it'll also depend on which sub-genres, labels, and particular artists you pay attention to