How to reproduce
Trap a mob (villager used here) in a 2×2 hole within four fences
Break the fence closest to the villager
Replace the fence
→ The fence will be placed as expected, but the placement is silent. There is also a notable delay in neighbouring fences updating their block states.
Related issues
is duplicated by
relates to
Attachments
Comments

Does this affect 1.12.2?

Completely unable to place the fence in 1.12.2.

can confirm
"Block placed" is also absent from the subtitles when this happens

Seems like as of 19w42a the hand animation plays correctly, but there's still no sound.

Update delay seems gone in 20w12a.

and hand animation gone again in pre3
I attach a video where the error is clearly seen. The video is called bug.
Can confirm in 20w51a.

Far less consistent in 21w03a, seemingly. Only reproduced once.
Can confirm in 21w05b. The easiest way I've found to reproduce this, is to hold right-click in the opposite direction of a moving mob. When you time is right, you can reproduce this.
Can confirm in 21w06a.
Can confirm in 21w08b.
Can confirm in 21w11a.

Can confirm in 21w15a.

Can confirm in 21w15a, however only sometimes on certain sides of the mob.
Can confirm in 1.17.
Can confirm in 1.17.1.
Can confirm in 1.18.1.
Can confirm in 1.18.2.
Can confirm in 1.19 and 22w24a.
Can confirm in 1.19.1.

Can confirm in 1.20.2 and 23w43a

Can confirm in 1.20.6

Can confirm in 24w20a