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

285
Visualizações
any way to show only image in semantic ui dropdown selected option but show both the image and name in the dropdown list

I am using React semantic UI. I am rendering a dropdown. I want that when an option is selected only the image should show, in the current case only the name shows but my expected result is that only the image should show but both the image and the name should show in the dropdown options

Here is my dropdown code:

options = [
  { key:"a", value: 1, name: 'uni',  text: "first", image: {avatar: true, src: require('../images/sqare.svg' )}},
  { key:"b", value: 2, name: 'duo',  text: 'second', image: {avatar: true, src: require('../images/circle.svg' )}},
  { key:"c", value: 3, name: 'tri',  text: ' third', image: {avatar: true, src: require('../images/triangle.svg' )}},
  { key:"d", value: 4, name: 'quart', text: 'fourth', image: {avatar: true, src: require('../images/hexa.svg' )}},
];

 const  handleDropDownSelect = (event, data) => {
    onChangeValue(data.value)

  };
  const Dropdown = () => (
return(
      <Dropdown
          placeholder = "abc"
          fluid
          selection
          options={options}
          onChange={handleDropDownSelect}

      />)

 <DropDownContainer>
            <Dropdown />
 </DropDownContainer>```
about 4 years ago · Juan Pablo Isaza
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