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