I have an angular (15) material data table in which each row has a vertical menu icon in the first column opening a small context menu (mat-menu). The problem is that on mobile view after a certain row it starts to show up somewhere else (see gif).
I have no idea what causes this. I've tried to reproduce it on StackBlitz with no luck. The best I could come up with is this gif. And also tried to remove everything (in my project) that's potentially could affect this behaviour (styles, scripts etc). I've also added only this component to the index.html file as
<body>
<my-wrong-datatable-component></my-wrong-datatable-component>
</body>
Still no luck. I use the prebuilt deeppurple-amber theme which is correctly referenced in the angular.json file.
Has anyone every experienced something like this? How should I deal with this issue?
Update:
I think this issue is related to the PointerEvent.clientY giving wrong value. When I click on the same places as in the gif, it gives me values of 200, 700 and then 2700, etc. The screen is not even that big.