Browse Source

Merge pull request #24187 from abpframework/issue-7593

Improve focus handling for form field visibility
pull/24203/head
Yağmur Çelik 11 months ago
committed by GitHub
parent
commit
10b833cd76
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts

4
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts

@ -155,7 +155,9 @@ export class ExtensibleFormPropComponent implements OnChanges, AfterViewInit {
ngAfterViewInit() {
if (this.isFirstGroup && this.first && this.fieldRef) {
this.fieldRef.nativeElement.focus();
requestAnimationFrame(() => {
this.fieldRef.nativeElement.focus();
});
}
}

Loading…
Cancel
Save