tech-advantage / ngx-icon-picker

An Icon Picker Directive/Component for Angular 13+ which manages Font Awesome, Bootstrap Glyphicon, Font Awesome5 and Material.
MIT License
25 stars 33 forks source link

[opPosition] works incorrectly with form inside modal #7

Closed pr0menade closed 6 years ago

greg7859 commented 6 years ago

Hello pr0menade,

I tried to reproduce the problem, but it works for me. I added some code in the example to help you to integrate the icon picker in the modal dialog.

Hope this will help you.

greg7859 commented 6 years ago

Argh, I forgot to check the opPosition...

greg7859 commented 6 years ago

After checking, it works too.

Be careful, it 's [ipPosition] and not [opPosition]

Try with this code : <input type="text" name="iconCss" class="form-control" formControlName="iconCss" [iconPicker]="icon" [ipPosition]="'top'" [ipWidth]="'250px'" [ipPlaceHolder]="'Choose an icon'" [ipFallbackIcon]="fallbackIcon" (iconPickerSelect)="onIconPickerSelect($event)" />