The Bug:
Items within dialogs play the "minecraft:ui.button.click" sound when clicked on.
It doesn’t make much sense that the "minecraft:ui.button.click" sound is played when an item within a dialog is clicked on. No sound is played when plain messages are clicked on, so I think items should follow the same behavior. Throughout the game, when elements within lists are selected, no sound is normally played, therefore introducing an inconsistency. For example, select a world within the singleplayer menu and observe how no sound is played upon doing so.
Steps to Reproduce:
Place down a command block and paste the following command into it.
/dialog show @p {"type":"minecraft:notice","title":"MC-299875","body":[{"type":"minecraft:item","item":{"id":"minecraft:diamond"},"description":"This is a Diamond.","show_tooltip":false},{"type":"minecraft:item","item":{"id":"minecraft:gold_ingot"},"description":"This is a Gold Ingot.","show_tooltip":false},{"type":"minecraft:item","item":{"id":"minecraft:emerald"},"description":"This is an Emerald.","show_tooltip":false}]}
Activate the command block so that a dialog appears on your screen.
Click on the items and text and listen closely as you do this.
Observed Behavior:
The "minecraft:ui.button.click" sound is played.
Expected Behavior:
The "minecraft:ui.button.click" sound shouldn’t be played.