Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

215
Visualizações
Picker wheel for <select> tag doesn't show in iphone ios 15 in React-JS PWA

I have a select input and a box. The select box in iphone IOS 12 or less appear as a wheel picker, but in IOS 15, appear as a black box. I want it to appear as a wheel picker too. Here is my code:

        <InputWrapper>
          <Label>{t('province')}</Label>
            <Select {...register('province')} defaultValue={profile?.province} onChange={filterCities}>
              {provinces.map(province => {
                return (
                  <Option key={province.id} value={province.name}>
                    {province.name}
                  </Option>
                );
              })}
            </Select>
        </InputWrapper>

And here is my style:

export const InputWrapper=styled.div`
padding:10px 5px;
display:flex;
flex-direction:column;
`
export const Label=styled.label`
font-size:13px;
font-weight:400;
margin:5px;
`
export const Select=styled.select`
background-color:var(--secondaryBackground);
padding:10px 15px;
font-size:16px;
font-weight:500;
border-radius: 4px;
border:1px solid var(--boxShadow);
flex-grow:1;
color:var(--primaryText);
`
export const Option=styled.option`
background-color:var(--secondaryBackground);
padding:5px 15px;
font-size:14px;
font-weight:400;
border:1px solid var(--primaryText);
border-radius:10px;
width:50%;
color:var(--primaryText);
`

I want my select option appear as a wheel picker in all IOS versions in Iphone. please help me. Thanks in advance.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The way select inputs are represented when they are opened changed between iOS 12 and 15. Apart from rolling your own custom implementation of a select box (a reasonable approach is given in WAI-ARIA Authoring Practices 1.2), you're bound to the way the version of Safari that shipped with the iOS version on the device represents it. The built-in select works fine, just looks differently depending on the iOS version.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda