mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
fix: Disable pointer events when readonly
This commit is contained in:
parent
75a7e1d58d
commit
4784cd5793
@ -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'
|
||||
];
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user