A
A
Alexander Florenko2019-01-03 20:58:39
HTML
Alexander Florenko, 2019-01-03 20:58:39

Why doesn't it save the email from the form?

Hello.
There is a form.

<form class="reg__control--group"
          @submit.prevent="$emit('submitForm')"
    >

        <label class="reg__label">
            <span class="reg__label-title">
                {{ $t('registrations.email') }}
            </span>
            <span class="reg__label__input--wrap disabled reg__label__input-email">
                <input class="reg__label__input" type="email" disabled
                       :placeholder="$t('registrations.emailPlaceholder')"
                       :value="user_email"
                >
                <i class="fa fa-envelope-o reg__label__input--envelop"></i>
                <i class="fa fa-check reg__label__input--successfully"></i>
            </span>

        </label>

        <label class="reg__label">
            <span class="reg__label-title">
                {{ $t('registrations.password') }}
            </span>
            <span class="reg__label__input--wrap reg__label__input-passwd"
                  :class="{successfully: !disableBtn}"
            >
                <input class="reg__label__input"
                       autofocus
                       :type="passwdType" ref="passwdInput"
                       v-model="user_password"
                       @input="eventPassInput($event)"
                       :placeholder="plac"
                >
                <i class="fa fa-lock reg__label__input--lock"></i>
                <span class="reg__label__input--showPasswd"
                        @click.prevent="toggleType()"
                >
                    <i v-if="!showPasswd" class="fa fa-eye-slash"></i>
                    <i v-else class="fa fa-eye"></i>
                </span>
            </span>
        </label>

     

        <button class="btn btn--green reg__next"
                :disabled="disableBtn"
        >
            {{ $t('registrations.next') }}
            <i class="fa fa-long-arrow-right"></i>
        </button>

    </form>

Mail is pulled from the previous step, the input has the disabled attribute
. The user enters the password.
When sending, the browser offers to save only the password, and the Username field (for some reason, it is it, and not email) remains empty
5c2e4d2d9cc1e610264892.jpeg
. Where to dig?
mb who faced

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Bill, 2019-01-03
@SkipTyler

Try not disabled but readonly for input

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question