Steps to reproduce the issue:
Stand facing a solid block.
Place leaf litter blocks directly in front of that block.
Try to place a torch on the leaf litter blocks.
Expected result:
The torch should be replaced the leaf litter blocks, on the ground.
Actual result:
The torch is placed against the side of the block instead of on the ground.
This can also happen if you are not facing the block. Like in the 3rd and 4th screenshots.
Can confirm