Animatedsprite2d not working correctly

Godot Version4.4rc1

Question

This also happened to me in 4.3stable.
I have an animatedsprite2d attached to a characterbody2d, I added 5 animations, idle, up, down, left, right.
When I run the scene the animations all work correctly.
I wanted to add an attack animation to the spriteframes but I am unable to add them.
What happens is this, I click the add animation button, the new_animation line shows up in the left box, I am unable to click on this to change its name, I am also unable to click on any of the existing animations except the idle one.
In the inspector for the animatedsprite2d where the animation selection option is, it is not possible to change the animation as the dropdown list does not display. The animation also runs continuously and is not able to be stopped.
If I delete the idle animation then everything returns to normal and I can once again edit everything. If I delete all the animation frames out of the animation everything works again, I have tried a number of different animations but they all do the same.
Has anyone else seen this issue before.
Thanks.

Well it seems that I didn’t realise that if I use the @tool at the top of the script it will do that, so problem solved.