Skip to content

Commit 03a9425

Browse files
VdustRmarcosmoura
authored andcommitted
fix(MdField): disable clear button while field is disabled (#1326)
fix #1321
1 parent 6c5fe65 commit 03a9425

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MdField/MdField.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<span class="md-count" v-if="hasCounter">{{ valueLength }} / {{ MdField.maxlength || MdField.counter }}</span>
66

77
<transition name="md-input-action" appear>
8-
<md-button tabindex="-1" class="md-icon-button md-dense md-input-action md-clear" @click="clearInput" v-if="hasValue && mdClearable">
8+
<md-button tabindex="-1" class="md-icon-button md-dense md-input-action md-clear" @click="clearInput" v-if="hasValue && mdClearable" :disabled="MdField.disabled">
99
<md-clear-icon />
1010
</md-button>
1111
</transition>

0 commit comments

Comments
 (0)