Skip to content

Commit

Permalink
fix(module: textarea): fixed textarea-item test case error (NG-ZORRO#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
sWhite01111 authored and 3fuyu committed Oct 15, 2018
1 parent 28d76f2 commit f2bbdfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion components/textarea-item/textarea-item.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ describe('TextareaComponent', () => {
const textarea = textareaEle.nativeElement.querySelector('textarea');
expect(textarea.getAttribute('style')).toContain('height');
});

it('should focus work', () => {
component.clickTitle();
fixture.detectChanges();
Expand Down
1 change: 1 addition & 0 deletions components/textarea-item/textarea-item.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ export class TextareaItem implements OnInit, AfterContentChecked {
set focus(value) {
if (value && value.focus) {
this.textRef.nativeElement.focus();
this.inputFocus('');
}
}
@Input()
Expand Down

0 comments on commit f2bbdfb

Please sign in to comment.