I have the following code for a React dropdown:
import Select from 'react-select';
const dropdownStyles = {
control: base => ({
...base,
fontSize: '1.8vh'
}),
menu: base => ({
...base,
fontSize: '1.8vh'
}),
}
...
<Select
className="dropdown-select"
styles={dropdownStyles}
options={this.options()}
defaultValue={this.options()[0]}
onChange={selection =>
this.setState({'type': selection.value})
} />
On my iPhone XS, in both Chrome and Safari, it zooms in when I press the dropdown to select a value.
I have tried multiple different solutions to get rid of this, based on other StackOverflow answers. I've added a meta tag to the page header to prevent zooming. I've manipulated the fontSize passed in to ensure it's greater than 16px. I've added a CSS rule for .Select input
to change the font-size. Nothing worked.
Is there something unique about iPhone XS that breaks the solutions that worked before?