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

110
Visualizações
x-modal in alpine js is not working in select

I'm using alpine JS. In alpine for change actions, we can use x-modal which will bind the selected value. But when I am using select with x-modal the value is not updated to the variable. Though I am copying the code from the doc and pasting it into my project.

 <select name="limitOptions"  x-model="limitValue" data-action="change->table#onLimitChange" >
              <template x-for="(limit, index) in field.limit" :key="index" x-modal="limitValue"> 
//field.limit contains [
    {
        "text": "includes",
        "value": "includes",
        "id": 0
    },
    {
        "text": "excludes",
        "value": "excludes",
        "id": 1
    }
]
//closing the comment
                <option :value="limit.value"  x-text="limit.text"></option>
              </template>
            </select>
            <span x-effect="limitValue"></span>//throws error as limit value is undefined 
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