Found while testing MC-136405, and probably has a very similar cause.
Targeting this block mostly concealed by water results on it being placed atop the water, rather than attempting to replace the water as with any other block.
Related issues
Attachments
Comments

[media][media]
Can confirm. Also affects 1.17.

This seems to require a block above the one targeted.