I try to show popover near my tab with “more” icon, but it’s shows on the center.
Also I have an error when I click backdrop from popover (but only when I send event as a parameter to popover.present({ev: event})).
It’s only works when I use button for popover, but I can’t add it to tabs.
Any thoughts?
Error
browser_adapter.js:84 EXCEPTION: Error in ./PopoverCmp class PopoverCmp
browser_adapter.js:84 RangeError: Maximum call stack size exceeded
at _baseExtend (util.js:49)
Sorry to say, but ion-tabs are not working in Ionic2. They can’t have childs, nor push to some page it always create an error. This is stated in Github multiple times.
What I did as a workaround, is to use segments inside of tabs. That allows for inside navigation in each tab.
What exactly do you mean by not working? A tab perfectly allows navigation as for as I know and you can even switch outside of a tab into another top level page if you want do so. What has this got to do with the related topic (perhaps your answer was mistakenly placed in this topic) since it’s about the popover?
@Meliha Could you work out a small piece of code so we can see your current setup? Maybe we can figure out how to make this work
The $event passed in ionSelect is not a click event, it is a Tab component. You can fake a click event to the extent necessary by making an object that sets the target to the native element of the tab’s button as shown. The PopoverController uses this to determine where to popup with the pointer pointing at the target element.