Skip to content

Commit

Permalink
feat(module: input-item): fix value bug when clear (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
sWhite01111 authored and fisherspy committed Jun 11, 2019
1 parent 11ee692 commit 51772f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/input-item/input-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,8 @@ export class InputItemComponent implements OnInit, AfterViewInit, OnChanges, Con
this._placeholder = this._value;
}
this._value = '';
this.onChange.emit('');
this.onChange.emit(this._value);
this._onChange(this._value);
this._isClear = true;
if (this._type !== 'money') {
this.inputElementRef.nativeElement.value = this._value;
Expand Down

0 comments on commit 51772f7

Please sign in to comment.