Skip to content

Commit

Permalink
fix(MdField): disable clear button while field is disabled (#1326)
Browse files Browse the repository at this point in the history
fix #1321
  • Loading branch information
VdustR authored and marcosmoura committed Dec 22, 2017
1 parent 6c5fe65 commit 03a9425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/MdField/MdField.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<span class="md-count" v-if="hasCounter">{{ valueLength }} / {{ MdField.maxlength || MdField.counter }}</span>

<transition name="md-input-action" appear>
<md-button tabindex="-1" class="md-icon-button md-dense md-input-action md-clear" @click="clearInput" v-if="hasValue && mdClearable">
<md-button tabindex="-1" class="md-icon-button md-dense md-input-action md-clear" @click="clearInput" v-if="hasValue && mdClearable" :disabled="MdField.disabled">
<md-clear-icon />
</md-button>
</transition>
Expand Down

0 comments on commit 03a9425

Please sign in to comment.