Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Checkbox ng-change issue #5072

@anteksiler

Description

@anteksiler

Using this code:

<div ng-repeat="option in question.options">
    <md-checkbox class="question-option" data-condition="{{question.condition}}" checklist-model="answers.answer[question.survey_question_id]" checklist-value="option.id" ng-change="check_condition(answers.answer[question.survey_question_id])" aria-label="{{question.question}}">{{option.option}}</md-checkbox>
</div>

The function is called with everychange, however, it returns the model that is before the action.
Lets say there are 2 checkboxes, both unchecked. If you check one of them, the model returns null, but if you uncheck it, it returns the checked value.

Metadata

Metadata

Assignees

Labels

P1: urgentUrgent issues that should be addressed in the next minor or patch release.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions