Rename tag not working as expected

When I’m editing the next tag the prepopulated tag is the last tag that I edited earlier.

Let me explain

I have two tags:

wanda-vision, wonder-woman

I edited the first tag

wanda-vision → WandaVision

Now I’m editing second tag

wonder-woman → Wonder-Woman

But but now the prepopulated value for wonder-woman tag is WandaVision (the value That I entered for previous tag)

But after refreshing the page the prepopulated value will work fine.