Skip to content

Commit

Permalink
refactor(tags): optimize the code to control class
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinplemelon authored and ysfscream committed Mar 26, 2021
1 parent f7dcf46 commit 56c4c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/Tags/src/tags.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 }"
>
<el-option v-for="item in options" :key="item" :label="item" :value="item" @mousedown="handleMousedown(item)">
</el-option>
Expand Down

0 comments on commit 56c4c0c

Please sign in to comment.