From fe2c74c8c88717995a47a207f5f054bed0116fa5 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Fri, 15 Feb 2019 08:40:18 +0100 Subject: [PATCH] fixed event emiter --- front/core/components/check/check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/core/components/check/check.js b/front/core/components/check/check.js index decc2ab8c..9c67cb502 100644 --- a/front/core/components/check/check.js +++ b/front/core/components/check/check.js @@ -16,7 +16,7 @@ export default class Controller extends Component { this._field = value; - if (this._checkValue !== undefined && this._checkValue !== null) + if (typeof this._checkValue === 'boolean') this.emit('change', {value: this.field}); this._checkValue = value;