-2

What could I do about the non-essencial input field? The dropdown works correctly, but it is bad from visual point. enter image description here

Code: <p-dropdown [options]="optionsForDropdown" [(ngModel)]="rowData.linkCat" appendTo="body" optionLabel="label" optionValue="value"> {{rowData.linkCat}}

marcer
  • 1
  • 1

1 Answers1

0

Make sure that you don't have a style that overrides the PrimeNG style of the input container.

The container div of the input has a class to hide it.

For PrimeNG >= 10 the class is p-hidden-accessible For older versions it's ui-helper-hidden-accessible

This div should have this css applied to it

border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
width: 1px;
Ony
  • 75
  • 9