Normally 3 archers were mounted on a elephant. These guys had to perform distant shooting. They lost their effect in close combat distance. Close combat to elephant was confronted by the escort infantry, supported more and less by mounted javelinmen/archer crew.
So why distant shooting should not be allowed for the (Classical Indian) elephant as well as for horse chariots and bullock chariots with archer crew (latters with same function)?