Created
January 15, 2019 09:24
-
-
Save yuzhouu/f307a9321f5247aeb9d9698aca84c7cb to your computer and use it in GitHub Desktop.
prevent chrome autocomplete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div> | |
<input type="password" :style="{ position: 'absolute', top: '-99999px' }"> // this line prevent chrome autocomplete below | |
<input :type="computedType" autocomplete="off"> | |
<span | |
v-if="type==='password'" | |
:class="['eye', eyeStatus?'eye-open':'eye-close']" | |
@click="toggleEyeStatus" | |
></span> | |
</div> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment