In my project I have a custom style, created by previous devs. I can't remove it and put a "normal" style, because the project is mature and the client like this style.
I adjusted the style for p:selectonemenu
, but if I filter, all the elements disappear. I checked with the inspector and it seems that simply to the other options is added display="none"
. So I do not understand why also the option that should be visible, disappear.
This is my custom style:
.ui-selectonemenu {
margin: 5px;
padding: 6px;
font-size: 1em !important;
/* The arrow */
background-image: url(data:image/svg+xml;charset=utf-8,[...]]);
background-position: right .5em center;
background-repeat: no-repeat;
background-size: .8em;
display: inline-flex !important;
}
.ui-selectonemenu-trigger {
display: none;
}
.ui-selectonemenu-panel {
background-color: white !important;
}
.ui-selectonemenu-label {
width: 100% !important;
box-shadow: none !important;
background: none;
}
.ui-selectonemenu-items {
background: white;
}