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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
0 additions and
12 deletions
-
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; |
|
|
|
|