MR automatically closes when using /close <#Issue_ref>. No action for closing associated/referenced issue

When I enter description of MR, write /close <#issue_id>, and hit Create MR, what gets closed? Created MR instead of referenced issue.