-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: pass event to popover present method #23813
Comments
Thanks for the issue. If you need to open a popover from multiple buttons, I recommend using the The Can you try using the |
Using the If the end goal of inline popovers is to simplify the process of using a popover, perhaps exporting |
The I agree that the goal of inline popovers is to simplify the process of using Can you give the |
I did try using the |
Thanks for the update. I think it would be valuable to be able to pass in the click event to the |
Thanks for the issue. This has been resolved via #23827, and a fix will be available in an upcoming release of the Ionic Framework v6 beta. This will allow you to pass in a click event to the |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prequisites
Ionic Framework Version
Current Behavior
Because the id attribute is used for triggering ion-popover, only a single element on the page is allowed to trigger the popover.
Expected Behavior
Should be able to trigger ion-popover from multiple buttons. The primary use case I see for this is the collapsible header/buttons feature. When using a collapsible header with a collapsible button, it is required to use two buttons to make the collapsible header work properly. Because the inline popover only allows a single element trigger, you can't show the popover when you're scrolled all the way up.
Steps to Reproduce
Create two buttons and an inline popover. Add the id attribute to both buttons and only one of them will work.
Code Reproduction URL
No response
Ionic Info
Ionic:
Ionic CLI : 6.17.0 (/Users/jr.stanley/.nvm/versions/node/v14.17.5/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.0-beta.4
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.2.2
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0
Capacitor:
Capacitor CLI : 3.2.0
@capacitor/android : not installed
@capacitor/core : 3.2.0
@capacitor/ios : not installed
Utility:
cordova-res : not installed globally
native-run : 1.4.0
System:
NodeJS : v14.17.5 (/Users/jr.stanley/.nvm/versions/node/v14.17.5/bin/node)
npm : 7.20.6
OS : macOS Big Sur
Additional Information
No response
The text was updated successfully, but these errors were encountered: