mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-11-01 18:43:22 +00:00
fix: cannot drag newly-created board cards (#6207)
This commit is contained in:
parent
a1bc9246b1
commit
91173f707e
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user