Home > front end >  p-dropdown css behaves differently
p-dropdown css behaves differently

Time:04-06

my primefaces dropdowns are displayed correctly on chrome (2nd screenshot), but not on firefox (1st screenshot): enter image description here

enter image description here

here's a snippet of my code:

        <div >
            <div >
                <label>xx</label>
                <p-dropdown placeholder="xxx"
                 (...)
                </p-dropdown>
            </div>
            <div >
                <label>xxx</label>
                <p-dropdown placeholder="xxx">
                (...)
                </p-dropdown>
            </div>
       </div>

Edit:

Rendered HTML is https://pastebin.com/i0XTbWEq

CodePudding user response:

the problem was caused by primeng css, I had to override width: -webkit-fill-available; with width: 100%;. that solved the issue.

  • Related