Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

106
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda