fix: exclude Float & Currency from read only formcontrol

This commit is contained in:
Shariq Ansari 2025-05-07 14:01:39 +05:30
parent f866284240
commit e804fa39ba
2 changed files with 8 additions and 2 deletions

View File

@ -93,7 +93,10 @@
:key="field.fieldname"
>
<FormControl
v-if="field.read_only && field.fieldtype !== 'Check'"
v-if="
field.read_only &&
!['Float', 'Currency', 'Check'].includes(field.fieldtype)
"
type="text"
:placeholder="field.placeholder"
v-model="row[field.fieldname]"

View File

@ -12,7 +12,10 @@
>
</div>
<FormControl
v-if="field.read_only && field.fieldtype !== 'Check'"
v-if="
field.read_only &&
!['Float', 'Currency', 'Check'].includes(field.fieldtype)
"
type="text"
:placeholder="getPlaceholder(field)"
v-model="data[field.fieldname]"