Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 229fd84

Browse files
authored
fix: DEV-3738: Editable textarea in region list (#1006)
1 parent af9c636 commit 229fd84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tags/control/TextArea/TextArea.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,15 +446,15 @@ const HtxTextAreaResult = observer(({
446446
const editable = item.editable && item.from_name.editable && !item.area.readonly;
447447

448448
const changeHandler = useCallback((idx, val) => {
449-
if (!item.isEditable) return;
449+
if (!item.from_name.isEditable) return;
450450
const newValue = value.toJSON();
451451

452452
newValue.splice(idx, 1, val);
453453
item.setValue(newValue);
454454
}, [value]);
455455

456456
const deleteHandler = useCallback((idx) => {
457-
if (!item.isDeleteable) return;
457+
if (!item.from_name.isDeleteable) return;
458458
const newValue = value.toJSON();
459459

460460
newValue.splice(idx, 1);

0 commit comments

Comments
 (0)