Skip to content

checkbox can not be selected if it's in a element with @click listener? #4521

Closed
@qbaty

Description

@qbaty

Vue.js version

2.1.6

Reproduction Link

http://codepen.io/qbaty/pen/NboZoz?editors=1111

Steps to reproduce

my html is div > input[type=checkbox]
when div with v-on:click, I found that the input element can not be selected.

What is Expected?

when click this input checkbox, checkbox should be selected or canceled.
div click event will trigger.

What is actually happening?

I have not read the source code,But I think div capture this click event and should not stop this event immediate, it kinda like use “event.stopImmediatePropagation” stop the event progagation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions