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

Checkbox not emitting change event #130

Closed
cmd-shift-s opened this issue Jun 28, 2017 · 2 comments
Closed

Checkbox not emitting change event #130

cmd-shift-s opened this issue Jun 28, 2017 · 2 comments

Comments

@cmd-shift-s
Copy link
Contributor

Overview of the problem

Buefy version: [0.4.2]
Vuejs version: [2.3.4]
OS/Browser: Windows/Chrome

Description

i used the b-checkbox component like this:
<b-checkbox v-model="todo.done" @change="update(todo)"></b-checkbox>

i could get the change event when i clicked the checkbox
but when i pressed space or enter key, i couldn't get the change event.

todo.done is changed well.

Steps to reproduce

  1. Focus the checkbox (using tab key or click).
  2. Press space or enter.
  3. Didn't call the update function.

Expected behavior

Get the change event when the v-model is changed

Actual behavior

Didn't get the change event

@gdutwyg
Copy link

gdutwyg commented Apr 25, 2018

@gongzza @rafaelpimpa if i want to focus the checkbox and Press enter , the checkbox should not be selected(but space can select), how should i do?

@gdutwyg
Copy link

gdutwyg commented Apr 25, 2018

i want to preventDefault(), but it don't work

kikuomax pushed a commit to kikuomax/buefy that referenced this issue Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants