Tbf, since I have done this some 2-3 times:
Some special shampoos require you to be sitting there for like 10 minutes until it does its thing. I thought it was safe since water was no longer coming out of the shower, I didn't consider the high humidity environment.