Skip to content
Permalink
Browse files

fix(MdField): disable clear button while field is disabled (#1326)

fix #1321
  • Loading branch information...
VdustR authored and marcosmoura committed Dec 22, 2017
1 parent 6c5fe65 commit 03a94258603325d426e5290925ecf3f1279b4825
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/components/MdField/MdField.vue
@@ -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>

0 comments on commit 03a9425

Please sign in to comment.
You can’t perform that action at this time.