-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Popover with List Item Component not appearing #606
Comments
Hi, QPopover works as to be triggered by the immediate DOM node encapsulating it (whichever that is). In your case, it's the entire list item. It makes sense if you think a little about it. How would the Popover (which can be applied to any DOM node or component) know which item of the list is its "target"? Example: <div class="item">
<div class="item-content has-secondary">
<div>List item</div>
</div>
<div class="item-secondary">
<i>
more_vert
<q-popover........>...</q-popover>
</i>
</div>
</div> |
So it's a design decision to not have slots for the Vue component? That's fair. |
Software version
Quasar: 0.13.9
OS: Ubuntu 17.04
Linux Thinky 4.10.0-21-generic #23-Ubuntu SMP Fri Apr 28 16:14:22 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Node: 4.7.2
NPM: 3.5.2
Browsers: Google Chrome Version 58.0.3029.110 (64-bit)
iOS: N/A
Android: 6.0
Any other software related to your bug:
What did you get as the error?
Popover does not open when clicking on the
more_vert
icon.What were you expecting?
Popover to open when clicking on the
more_vert
icon.What steps did you take, to get the error?
Below is a template file to demonstrate the issue.
<q-list-item>
with a popover that does not appear at all. This was the suggested fix by @rstoenescu when I showed him the middle example.<q-list-item>
with a popover that opens all the way to the left regardless of where you click it<q-list-item>
) where the popover only appears when clicking on themore_vert
icon, and the popover appears from the icon.test.vue
The text was updated successfully, but these errors were encountered: