@humandialog/forms.svelte 0.5.18 → 0.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -47,8 +47,10 @@ export async function reload(data, selectElement = KEEP_SELECTION) {
|
|
|
47
47
|
selectElementId = 0;
|
|
48
48
|
break;
|
|
49
49
|
case KEEP_SELECTION:
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
if (currentSelectedItem) {
|
|
51
|
+
selectElementId = currentSelectedItem.Id ?? 0;
|
|
52
|
+
selectedColumnIdx = definition.columns.findIndex((c2) => c2.state == currentSelectedItem[sa]);
|
|
53
|
+
}
|
|
52
54
|
break;
|
|
53
55
|
case SELECT_PREVIOUS:
|
|
54
56
|
if (currentSelectedItem) {
|
|
@@ -74,8 +76,8 @@ export async function reload(data, selectElement = KEEP_SELECTION) {
|
|
|
74
76
|
break;
|
|
75
77
|
case KEEP_OR_SELECT_NEXT:
|
|
76
78
|
{
|
|
77
|
-
selectElementId = currentSelectedItem.Id ?? 0;
|
|
78
79
|
if (currentSelectedItem) {
|
|
80
|
+
selectElementId = currentSelectedItem.Id ?? 0;
|
|
79
81
|
const currentItemState = currentSelectedItem[sa];
|
|
80
82
|
selectedColumnIdx = definition.columns.findIndex((c2) => c2.state == currentItemState);
|
|
81
83
|
const columnItems = allItems.filter((e) => e[sa] == currentItemState);
|