Skip to content

Commit

Permalink
fix(input-item): clearbtn visbible only input focused[#196]
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 committed Sep 3, 2018
1 parent 23958b5 commit e09dc6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/input-item/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
<div
class="md-input-item-clear"
v-if="clearable && !disabled && !readonly"
v-show="!isInputEmpty"
v-show="!isInputEmpty && isInputFocus"
@click="$_clearInput($event)"
>
<md-icon name="circle-cross"></md-icon>
Expand Down

0 comments on commit e09dc6a

Please sign in to comment.