FIX: changing tag group privacy setting was not consistent (#5818)

This commit is contained in:
Arpit Jalan 2018-05-15 21:36:43 +05:30 committed by Régis Hanol
parent 69693f89f5
commit 51ee31b3eb
1 changed files with 6 additions and 2 deletions

View File

@ -5,8 +5,12 @@ export default Ember.Component.extend({
type : "radio",
attributeBindings : ["name", "type", "value", "checked:checked", "disabled:disabled"],
click: function() {
this.set("selection", this.$().val());
click() {
const value = this.$().val();
if (this.get("selection") === value) {
this.set("selection", undefined);
}
this.set("selection", value);
},
@computed('value', 'selection')