Unable to commit in non-default branch from code editor

Created by: lfedon

I am browsing code in a branch that is not the default branch of my project. If I preview the code, then click on edit, the editor allows me to commit on a branch which name is the id of the commit i am browsing.

If i commit some changes however, the branch is not created and my changes seem to be lost