Bug with autoattacking when chaning attunement?
Yea I have also noticed that and especially when I change to air just like you for a speed boost and i take a train of mobs with me cause the auto attack of air is the chain lightning so you can pull more that one. However until they fix it, you can avoid doing that by spam clicking the ground just after you press to change attunement as it cancels your target and stops the attack.