Browse Source

Merge pull request #24222 from abpframework/fix/components-upward-conflict

Angular - Fixing the merger conflict on extensible form prop component
pull/24223/head
erdem 3 months ago
committed by GitHub
parent
commit
3cc38e0471
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.ts

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

@ -101,9 +101,6 @@ export class ExtensibleFormPropComponent implements OnChanges, AfterViewInit {
@Input() isFirstGroup?: boolean;
@ViewChild('field') private fieldRef!: ElementRef<HTMLElement>;
private shouldFocus = signal(false);
private isViewReady = signal(false);
injectorForCustomComponent?: Injector;
asterisk = '';
containerClassName = 'mb-2';
@ -120,15 +117,6 @@ export class ExtensibleFormPropComponent implements OnChanges, AfterViewInit {
return this.disabledFn(this.data);
}
constructor() {
// Effect to handle focus when both conditions are met
effect(() => {
if (this.shouldFocus() && this.isViewReady() && this.fieldRef?.nativeElement) {
this.focusElement();
}
});
}
setTypeaheadValue(selectedOption: ABP.Option<string>) {
this.typeaheadModel = selectedOption || { key: null, value: null };
const { key, value } = this.typeaheadModel;

Loading…
Cancel
Save