Skip to content

Change event fired on form-checkbox mounted hook #134

Closed
@javiercbk

Description

@javiercbk

The following element fires the change event upon creation

<b-form-checkbox @change="onChange($event)" :checked="visible"></b-form-checkbox>

This behavior seems to be intentional as state in form-checkbox.vue.

mounted() {
  this.change(this.localChecked);
},

The problem is that whenever I register the change event listener on a regular checkbox, it does not fire the change event right away and it seems that this component should not either.

Is there a good reason for this behavior? am I missing something here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions