First focusable element within the offcanvas will receive focus upon opening. You can configure to focus any other element by adding an ngbAutofocus attribute on it.