If you click using the mouse, it will de-focus from the document. That’s a bug I should fix.
If you hit ENTER, it would complete the link and put your cursor after ]].
If you hit #, it will autocomplete, and insert #, then put your cursor before the ]].
In the upcoming release, you can also use | to autocomplete and stay inside ]].