<template>
    <v-row dense v-if="activeRecord">
        <v-col cols="12">
            <cs-text-box 
                ref="FirstControl"
                :control="controls.email"
                :errors="errorsManager.ByField('email')"
                v-model="activeRecord.email"
                @focus="errorsManager.ResetField('email')"
                @blur="errorsManager.Validate('email')"
            />
        </v-col>
    </v-row>
</template>

<script>
    export default {
        props: {
            editable: {required: true},
        },

        computed: {
            form() {
                return this.editable.form;
            },
        },

        mounted() {
            setTimeout( () => {
                this.$refs.FirstControl.Focus();
            }, 250)
        },

        components: {
            CsTextBox: require('@CsVueComp/controls/texts/CsTextBox').default, 
        },
        
        mixins: [
            require('@CsVueMix/Forminput/Forminput')
        ],

        name: 'DtUserEmailEdit',
    }
</script>