Replacing the shield used by the player with a shield with the "consumable" component causes the shield to stop blocking damage, but continues to slow down the player's movement until the player releases the shield use key.
Steps to reproduce
1) Place the command unit and the pressure plate to activate it. Enter a command in the command block that will replace the item in the player's hands with a shield with a “consumable” component.
Command example:
item replace entity @p weapon with shield[consumable={consume_seconds:0}] 2) Spawn zombie.
3) Switch to survival mode. Raise your shield and block the zombie's blows. Replace the shield by activating the command block while continuing to hold down the shield use key.
Observed Result
After the replacement, the shield remains raised, but stops blocking damage.
Expected Result
After the shield is replaced, the blocking is interrupted.
Additional Notes
Replacing the shield with any other item with the "consumable" and "blocks_attacks" components interrupts the blocking.
When replacing the shield with a shield with the component "!blocks_attacks" it also visually remains raised, the player slows down, but the damage stops blocking.
If the "animation" field of the "consumable" component is not set for the new shield, it visually disappears. If the field is set, the shield continues to be displayed raised, although it no longer actually blocks damage.
Couldn't attach video to report