We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 573fcff commit 3f1a4d2Copy full SHA for 3f1a4d2
ui/src/components/file/QFile.js
@@ -120,17 +120,22 @@ export default Vue.extend({
120
},
121
122
__getControl (h) {
123
- return h('div', {
+ const data = {
124
ref: 'target',
125
staticClass: 'q-field__native row items-center cursor-pointer',
126
attrs: {
127
tabindex: this.tabindex
128
- },
129
- on: cache(this, 'native', {
+ }
130
+
131
+ if (this.editable === true) {
132
+ data.on = cache(this, 'native', {
133
dragover: this.__onDragOver,
134
keyup: this.__onKeyup
135
})
- }, [ this.__getInput(h) ].concat(this.__getSelection(h)))
136
137
138
+ return h('div', data, [ this.__getInput(h) ].concat(this.__getSelection(h)))
139
140
141
__getControlChild (h) {
0 commit comments