When using an anvil and trying to rename an item it does not allow you to do so.
The problem occurs when you try to click on the name to re name the item so you can not rename any items.
Linked issues
duplicates 1
Comments 2
Duplicate of MC-173725
It seems that it's impossible to edit the text, clicking in the input box and typing doesn't change anything.