AmpleOrganics / AmpleOrganics/Blaze.vue

AoCheckbox: emits Boolean rather than assigned value

Open
#366 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
6
Forks
2
PR merge metrics
No merged PRs in 30d

Description

# Issue summary

When setting the `checkboxValue` prop to an object, selecting the checkbox emits `true` rather than the assigned value.

## Expected behavior

The 'input' emit should pass the Number/Object/Array privided by the checkboxValue prop

## Actual behavior

The 'input' emit always passes a Boolean

## Steps to reproduce the problem

1. Add an ao-checkbox with the `:checkbox-value` prop set to an Object or Number
1. Click the checkbox

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.