I made some onion Bhaji's up last weekend and mixed up the spices and covered the onions before adding rice flour and Gram flour, no water was used i let the mix sit for ten mins to allow the salt to draw moisture from the onions.
Doing this i found i didn't have the situation where the mix seemed to keep getting wetter, for me the mix seemed a bit more stable.