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="{
hover && visibility:
value && hover &&
!$attrs.disabled && value &&
!$attrs.readonly && !$attrs.disabled &&
$props.clearable !$attrs.readonly &&
" $props.clearable
? 'visible'
: 'hidden',
}"
@click=" @click="
() => { () => {
value = null; value = null;