Hi I'm having a issue with a navigation button within a ag-grid table. When routing the user to a different component the display breaks. see below screen shot:

Now if I click anywhere on the page it displays correctly (This is the incorrect functionality. I expect to be displayed with the correct template on-landing of the component). see below screen shot:
I have a grid.component where all configurations of the grid take place and I implement a cellRendererFramework to incorporate a button for editing a row of the grid. This is my implementation of the edit button component:
this.columns.push({
headerName: '#',
cellRendererFramework: ActionButtonRendererComponent,
field: '_actions',
width: 300,
});
this.gridOptions.columnDefs = this.columns;
Within this simple ActionButtonRendererComponent I have a template displaying a simple hyperlink with the relevant and correct route
<a class="btn btn-primary btn-sm mr-2 mb-2" routerLink="/to/my/route" type="button"><i aria-hidden="true" class="fa fa-edit"></i></a>
The end result is my grid looking like this:
Now if I click the blue edit button this unexpected behavior happens (as I described above and with the relevant screen shots). The strange thing is that if I create a hyperlink outside of the grid rows, that implement the same route /to/my/route it works perfectly and loads the relevant components template correctly with no need for a extra click.
This behavior is so weird and cannot get my head around it. Any help would be greatly appreciated.