Skip to content
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

v-on:click events inside quasar-dropdown doesn't work #18

Closed
mlenormand opened this issue Aug 17, 2016 · 2 comments
Closed

v-on:click events inside quasar-dropdown doesn't work #18

mlenormand opened this issue Aug 17, 2016 · 2 comments
Assignees
Milestone

Comments

@mlenormand
Copy link

When adding an event listener v-on:click on an element inside a quasar-dropdown, the event listener doesn't work. For example :

<span v-on:click="event1()" class="label">Test</span>

The problem comes from the folllowing code in dropdown-common.js, that close the dropdown on next mousedown event everywhere on the page.

document.body.addEventListener('mousedown', this.close)

@mlenormand mlenormand changed the title v-on:click events on quasar-dropdown doesn't work v-on:click events inside quasar-dropdown doesn't work Aug 17, 2016
@rstoenescu
Copy link
Member

Reproduced. Will fix it.

@rstoenescu rstoenescu self-assigned this Aug 19, 2016
@rstoenescu rstoenescu added this to the v0.5.1 milestone Aug 19, 2016
@rstoenescu
Copy link
Member

Progressing nicely.

Rewritten Dropdown (will be called Popover) and Context Menu.
The new Popover will also fix this bug.
Context menu will also work on mobile with a nice minimized Modal. Will delay commit for a few days to extensively test the changes as the code complexity is high and don't want to introduce bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants