fix: Disable pointer events when readonly

This commit is contained in:
Faris Ansari
2020-02-03 23:25:11 +05:30
parent 75a7e1d58d
commit 4784cd5793
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -54,7 +54,8 @@ export default {
let classes = [
{
'px-3 py-2': this.size !== 'small',
'px-2 py-1': this.size === 'small'
'px-2 py-1': this.size === 'small',
'pointer-events-none': this.isReadOnly
},
'focus:outline-none focus:bg-gray-200 rounded w-full text-gray-900 placeholder-gray-400'
];
+1
View File
@@ -19,6 +19,7 @@
</Row>
<div class="overflow-auto" :style="{ 'max-height': rowContainerHeight }">
<TableRow
:class="{ 'pointer-events-none': isReadOnly }"
ref="table-row"
v-for="row in value"
:key="row.name"