alfonsobries/vue-tailwind

Checkbox not working, value never changes

msslgomez opened this issue · 2 comments

How am I supposed to use the checkbox correctly, it doesn't work how I would expect. When I click on the checkbox the field form.remember never changes even as the checkbox is being checked and unchecked.

<template>
    <t-checkbox wrapped :model="form.remember">Remember me</t-checkbox>
</template>

<script>
export default {
    data() {
        return {
            form: this.$inertia.form({
                email: '',
                password: '',
                remember: false
            })
        }
    },
}

How am I supposed to use the checkbox correctly, it doesn't work how I would expect. When I click on the checkbox the field form.remember never changes even as the checkbox is being checked and unchecked.


<template>

    <t-checkbox wrapped :model="form.remember">Remember me</t-checkbox>

</template>



<script>

export default {

    data() {

        return {

            form: this.$inertia.form({

                email: '',

                password: '',

                remember: false

            })

        }

    },

}

You can create your own library

🙃 I like this library. Thanks I guess.