Skip to content

Commit

Permalink
fix(primeng): add missing appendTo property to select type
Browse files Browse the repository at this point in the history
fix #3809
  • Loading branch information
aitboudad committed Jan 7, 2024
1 parent e61880e commit c07e6d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/primeng/select/src/select.type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core'
import { FormlyFieldProps } from '@ngx-formly/primeng/form-field';
import { FormlyFieldSelectProps } from '@ngx-formly/core/select';

interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {}
interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
appendTo?: any;
}

export interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
type: 'select' | Type<FormlyFieldSelect>;
Expand All @@ -18,6 +20,7 @@ export interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps>
[formControl]="formControl"
[formlyAttributes]="field"
[showClear]="!props.required"
[appendTo]="props.appendTo"
(onChange)="props.change && props.change(field, $event)"
>
</p-dropdown>
Expand Down

0 comments on commit c07e6d6

Please sign in to comment.