You can't right click a non-solid block for the applied interaction to happen. Of course, there is a solution which would required a solid block next to the water, and upon clicking on that solid block will toggle the action if the water block happens to be next to that clicked block.
IMO, this...