mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-06 06:48:21 +00:00
Bugfix: when "make editable" toggle is false , edit option for column types (multiselect,select,datepicker) should be disabled (#2329)
* edit check included in datepicker , select and multiselect * cleanup
This commit is contained in:
parent
b55b260c89
commit
a034cb4338
2 changed files with 3 additions and 0 deletions
|
|
@ -55,6 +55,7 @@ export const Datepicker = function Datepicker({
|
|||
onChange={dateChange}
|
||||
closeOnSelect={true}
|
||||
onClose={onDatepickerClose}
|
||||
disabled={readOnly}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -482,6 +482,7 @@ export function Table({
|
|||
}}
|
||||
filterOptions={fuzzySearch}
|
||||
placeholder="Select.."
|
||||
disabled={!column.isEditable}
|
||||
/>
|
||||
<div className={`invalid-feedback ${isValid ? '' : 'd-flex'}`}>{validationError}</div>
|
||||
</div>
|
||||
|
|
@ -500,6 +501,7 @@ export function Table({
|
|||
onChange={(value) => {
|
||||
handleCellValueChange(cell.row.index, column.key || column.name, value, cell.row.original);
|
||||
}}
|
||||
disabled={!column.isEditable}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue