Popover: Arrow for popover doesn't appear in the correct place
Describe the bug While I am using component 'Popover' for a 'Shellbar onProfileClick' event, although I have set all these attribute 'placementType', 'verticalAlign' and 'horizontalAlign', 'popover' itself is in the correct place, but the arrow for popover still in the center.
To Reproduce
Steps to reproduce the behavior:
Here is code for my shellbar and popover

Expected behavior Arrow for popover should be in the correct place
Screenshots
You can see the arrow for popover is in the center.
UI5 Web Components for React Information "@ui5/webcomponents": "^1.0.0-rc.7", "@ui5/webcomponents-fiori": "^1.0.0-rc.7", "@ui5/webcomponents-icons": "^1.0.0-rc.7", "@ui5/webcomponents-react": "^0.9.1",
Hi @rkl1994,
thanks for submitting this issue. How does your onProfileClick function look like?
It should be something like
onProfileClick = (event) => {
popoverRef.current.openBy(e.detail.targetRef);
}
If that is the case, I'll have to forward this issue to our UI5 Web Components colleagues as the ShellBar and the Popover are both built by them.
Thanks for your quick reply.
Yes, this is exactly what I did in my onProfileClick. Here is the code:

I think I found the issue. There is a minor difference in the .openBy: If you open it on e.target, the whole ShellBar is the target, so the arrow will be in the middle of the Shell Bar. As you want to open it at the Profile Avatar, you have to use .openBy(e.detail.targetRef);, then it should work as expected.
Nevertheless, I think it looks very strange that the popover content is in another place than the popover arrow - @ilhan007 any ideas?
Hello @MarcusNotheis yes it's not supposed to happen, but on my side when I use event.target, instead of event.detail.targetRef both the arrow and the content are misplaced together. I checked that in the ShellBar test page where I changed the profileClick handler as mentioned. So, there should be something in addition. It would be great If the author or you can provide a sample where this is reproducible.
Hi @ilhan007, here's a reproducible example: https://codesandbox.io/s/strange-shannon-ojclq?file=/src/App.js Is it sufficient like that or do you need it as "pure" web component implementation?
Hello @MarcusNotheis it is enough, when I set the properties as in the sample, I can reproduce it with pure web component as well. I will get back to you when I find sth.
as this issue is related to controls that are developed in the UI5 Web Components Repo, I'll forward this issue.
This issue is duplicate of #2111 and is now resolved.