In jungle temples and the trial chambers if you break a dispenser it only drops the dispenser but not its contents. However if you open the dispenser first and then break it it drops correctly (e.g. snowballs, lingering health potions etc.). Only noticed this in latest update (no previews or experimental).
Steps to reproduce:
Create/open a world and find a jungle temple/the trial chambers
Break one of the dispensers inside of them before opening it
Break one of the dispensers inside of them after opening it
Observed result:
The dispenser drops its contents only after it has been opened.
Expected result:
The dispenser drops its contents regardless.
Can confirm in 1.21.20.22 on Windows. This affects both "wall_dispenser" and "floor_dispenser".