fix: cannot drag newly-created board cards (#6207)

This commit is contained in:
Richard Shiue 2024-09-07 00:20:13 +08:00 committed by GitHub
parent a1bc9246b1
commit 91173f707e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -614,10 +614,7 @@ class GroupItem extends AppFlowyGroupItem {
GroupItem({ GroupItem({
required this.row, required this.row,
required this.fieldInfo, required this.fieldInfo,
bool draggable = true, });
}) {
super.draggable.value = draggable;
}
final RowMetaPB row; final RowMetaPB row;
final FieldInfo fieldInfo; final FieldInfo fieldInfo;
@ -706,7 +703,7 @@ class GroupControllerDelegateImpl extends GroupControllerDelegate {
return Log.warn("fieldInfo should not be null"); return Log.warn("fieldInfo should not be null");
} }
final item = GroupItem(row: row, fieldInfo: fieldInfo, draggable: false); final item = GroupItem(row: row, fieldInfo: fieldInfo);
if (index != null) { if (index != null) {
controller.insertGroupItem(group.groupId, index, item); controller.insertGroupItem(group.groupId, index, item);