refactor focus method

pull/9392/head
mehmet-erim 4 years ago
parent f26c9380e0
commit 3fe3026860

@ -1,10 +1,4 @@
import {
ABP,
AbpValidators,
AutofocusDirective,
ConfigStateService,
TrackByService,
} from '@abp/ng.core';
import { ABP, AbpValidators, ConfigStateService, TrackByService } from '@abp/ng.core';
import {
AfterViewInit,
ChangeDetectionStrategy,
@ -131,8 +125,7 @@ export class ExtensibleFormPropComponent implements OnChanges, AfterViewInit {
ngAfterViewInit() {
if (this.first && this.fieldRef) {
const autofocusDirective = new AutofocusDirective(this.fieldRef);
autofocusDirective.ngAfterViewInit();
this.fieldRef.nativeElement.focus();
}
}

Loading…
Cancel
Save