Skip to content

Commit

Permalink
obfuscated field blur fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nbonamy committed May 15, 2024
1 parent 00f83dd commit 7b53d08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/InputObfuscated.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

<template>
<div class="wrapper">
<input :type="type" v-model="value" @keyup="onKeyUp" />
<input :type="type" v-model="value" @keyup="onKeyUp" @blur="$emit('blur')"/>
<component :is="icon" class="icon" @click="onToggleView" />
</div>
</template>
Expand All @@ -14,7 +14,7 @@ const type = ref('password')
const value = defineModel()
const emit = defineEmits(['change']);
const emit = defineEmits(['blur', 'change']);
const icon = computed(() => {
return type.value === 'password' ? 'BIconEye' : 'BIconEyeSlash'
Expand Down

0 comments on commit 7b53d08

Please sign in to comment.