From 56c4c0c7e76515160020b439c0a81e4bd3d0b5c9 Mon Sep 17 00:00:00 2001 From: Kinplemelon Date: Fri, 26 Mar 2021 17:23:51 +0800 Subject: [PATCH] refactor(tags): optimize the code to control class --- packages/Tags/src/tags.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/Tags/src/tags.vue b/packages/Tags/src/tags.vue index 351a0af..fad8383 100644 --- a/packages/Tags/src/tags.vue +++ b/packages/Tags/src/tags.vue @@ -23,7 +23,7 @@ @keyup.enter="handleInputConfirm('enter')" @blur="handleInputConfirm('blur')" :class="{ 'select-hidden': !inputVisible }" - :popper-class="!inputValue ? 'popper-hidden' : ''" + :popper-class="{ 'popper-hidden': !inputValue }" >