Fixed up checkbox input
This commit is contained in:
parent
16d77dead7
commit
cb43c27c6f
2 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,6 @@ export default Component.extend({
|
|||
|
||||
typeSpeciesDidChange: function() {
|
||||
this.toggleProperty('typeSpecies');
|
||||
console.log(this.get('typeSpecies'));
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
|
@ -8,7 +8,8 @@
|
|||
</div>
|
||||
<div data-field-span="1">
|
||||
<label>Type Species?</label>
|
||||
{{one-way-input type="checkbox" value=typeSpecies update=(action "typeSpeciesDidChange")}} {{if typeSpecies 'Yes' 'No'}}
|
||||
<input type="checkbox" checked={{typeSpecies}} value="{{typeSpecies}}" onchange={{action "typeSpeciesDidChange"}}>
|
||||
{{if typeSpecies 'Yes' 'No'}}
|
||||
</div>
|
||||
</div>
|
||||
{{#unless species.isNew}}
|
||||
|
|
Reference in a new issue