fixed event emiter

This commit is contained in:
Joan Sanchez 2019-02-15 08:40:18 +01:00
parent e373e603bf
commit fe2c74c8c8
1 changed files with 1 additions and 1 deletions

View File

@ -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;