fix: refs #7957 update visibility handling for clear icon in VnInput component

This commit is contained in:
Jorge Penadés 2024-12-16 16:08:46 +01:00
parent 4a4cb1cf3f
commit 1e0e859726
1 changed files with 10 additions and 7 deletions

View File

@ -141,13 +141,16 @@ const handleInsertMode = (e) => {
<QIcon <QIcon
name="close" name="close"
size="xs" size="xs"
v-if=" :style="{
visibility:
hover && hover &&
value && value &&
!$attrs.disabled && !$attrs.disabled &&
!$attrs.readonly && !$attrs.readonly &&
$props.clearable $props.clearable
" ? 'visible'
: 'hidden',
}"
@click=" @click="
() => { () => {
value = null; value = null;