How to edit a role to a collaborator?

Hello. I needed to add a collaborator to my repository. I added one in “manage access”, but I didn’t get a window where I could choose a role for them. After I searched for a collaborator in the list and clicked “Select a collaborator above”, it disappered and now the collaborator is in the list. But how to edit a role for the collaborator?

@veronique16, you did not clarify in your question who if the the repository was owned by a user account

See Collaborator access on a repository owned by a user account on the link below