具有输入样式类的PrimeNG自动完成

时间:2018-09-12 22:06:04

标签: css angular primeng primeng-dropdowns

我正在使用primeNG自动完成并添加了inputStyleClass =“ form-control”。问题是图标转到下一行。请参见下图

enter image description here

它应该在盒子旁边对齐,我该怎么做?

HTML

   <div class="form-group col-xs-3 col-md-3"
                                      [ngClass]="{
                                     'has-error':(ersaForm.get('gatewayRole').touched || ersaForm.get('gatewayRole').dirty ) &&
                                     !ersaForm.get('gatewayRole').valid
                                     }">
                                    <label for="gatewayRoleId" class="control-label">Gateway Role</label>
                                    <p-autoComplete  [suggestions]="iRole"  formControlName="Role"    inputStyleClass="form-control" id="RoleId" placeholder="Role (required)" (completeMethod)="searchRole($event)" [style]="{'width':'85%'}" [inputStyle]="{'width':'85%'}" field="name" dataKey="id" [dropdown]="true"></p-autoComplete>

                                </div>

0 个答案:

没有答案