async presentPopover(ev: any) {
const popover = await this.popoverController.create({
component: PopoverComponent,
event: ev,
mode: 'ios',
translucent: true
});
return await popover.present();
}
<button style="margin:100px; padding: 10px:" (click)="presentPopover($event)">POP</button>
In a pristine Tabs app just created, the arrow does not appear on the popover. It used to, with version 5.
1 Like
The documentation says:
If true
, the popover will display an arrow that points at the reference
when running in ios
mode on mobile. Does not apply in md
mode or on desktop.
Does the arrow show up if you emulate iOS?
Yes, thanks. It appears in emulation of iOS, but in the past, if you passed the mode:‘ios’ configuration, it worked as well, in web apps. The documentation for ionic has been terrible, for at least the last 5 years that I’ve been using it. The behavior has changed from v5 to v6, with no change in the documentation.
Gotcha. I would think it should work if mode:ios
as well. Maybe a bug?
Just got a message from ionic, that it is a bug, and is being worked on:
opened 03:57PM - 26 Dec 21 UTC
package: core
type: bug
### Prerequisites
- [X] I have read the [Contributing Guidelines](https://githu… b.com/ionic-team/ionic-framework/blob/main/.github/CONTRIBUTING.md#creating-an-issue).
- [X] I agree to follow the [Code of Conduct](https://ionicframework.com/code-of-conduct).
- [X] I have searched for [existing issues](https://github.com/ionic-team/ionic-framework/issues) that already report this problem, without success.
### Ionic Framework Version
- [ ] v4.x
- [ ] v5.x
- [X] v6.x
### Current Behavior
`PopoverOptions` interface lacks `arrow` attribute.
Cannot enable `arrow` when using popover controller to create popover.
### Expected Behavior
The `PopoverOptions` interface should provide `arrow` attribute.
### Steps to Reproduce
https://github.com/ionic-team/ionic-framework/blob/ee488ff27a05cc3325deb48d39162695a3ff815e/core/src/components/popover/popover-interface.ts#L9
### Code Reproduction URL
https://github.com/ionic-team/ionic-framework/blob/ee488ff27a05cc3325deb48d39162695a3ff815e/core/src/components/popover/popover-interface.ts#L9
### Ionic Info
Ionic:
Ionic CLI : 6.11.10 (C:\Users\18384\AppData\Roaming\npm\node_modules\@ionic\cli)
Ionic Framework : @ionic/angular 6.0.1
@angular-devkit/build-angular : 13.1.2
@angular-devkit/schematics : 12.2.14
@angular/cli : 13.1.2
@ionic/angular-toolkit : 5.0.3
### Additional Information
_No response_
Also, I re-read your message and tried the arrow:true. It isn’t allowed in the type definitions, so I used a @ts-ignore , but no luck. Not sure whether that is a bug in the docs or the type declarations.
Thanks for your help!