We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3f6eb0 commit 21d7e67Copy full SHA for 21d7e67
src/components/MdField/MdFile/MdFile.vue
@@ -1,6 +1,6 @@
1
<template>
2
<div class="md-file">
3
- <md-file-icon @click.native="openPicker" />
+ <md-file-icon class="md-file-icon" :class="iconClass" @click.native="openPicker" />
4
5
<input
6
class="md-input"
@@ -31,6 +31,13 @@
31
},
32
name: String
33
34
+ computed: {
35
+ iconClass () {
36
+ return {
37
+ 'md-disabled': this.disabled
38
+ }
39
40
+ },
41
mixins: [MdFieldMixin],
42
inject: ['MdField'],
43
methods: {
@@ -95,8 +102,14 @@
95
102
border: 0;
96
103
}
97
104
98
- .md-icon {
99
- cursor: pointer;
105
+ .md-file-icon {
106
+ &:not(.md-disabled) {
107
+ cursor: pointer;
108
109
+
110
+ &.md-disabled {
111
+ pointer-events: none;
112
100
113
101
114
115
</style>
0 commit comments