Estoy usando JS alpino. En alpine para acciones de cambio, podemos usar x-modal que vinculará el valor seleccionado. Pero cuando uso seleccionar con x-modal, el valor no se actualiza a la variable. Aunque estoy copiando el código del documento y pegándolo en mi proyecto.
<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