The select with filter is working, but the styling is awkward and I’m not sure why or how to fix it.
My HTML (generating this with PHP, hence the PHP variables)
<input type=text data-table=pets class='breed standardinput' id=breed".$petid." data-column=breed data-keyvalue=".$petid." value=\"".$breed."\" style='color:black'>
My JS
$('.breed').mobiscroll().select({
placeholder: 'Please select',
display: 'center',
data: ".$breeddata.",
filter: true,
responsive: {
small: {
display: 'bottom'
},
medium: {
touchUi: false
}
}
});
So it seems pretty straight forward, but when I click on the select, the filter input doesn’t stretch all the way across so it looks awkward as you can see in this screenshot.
If I remove the “display:table-cell” from .mbsc-input using Chrome developer tools then it looks much better, as you can see in the second screenshot, but I obviously don’t want to override such a common class for just this one issue. So what’s the solution here?