This commit is contained in:
marlon-erler
2024-07-09 00:38:05 +02:00
parent e54941d6bf
commit eb5152b63c
3 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -185,13 +185,13 @@
try {
const [listState, toElement] = value;
listState.handleAddition((newItem) => {
const child = toElement(newItem, listState);
const child = toElement(newItem);
listState.handleRemoval(
newItem,
() => child.remove()
);
element.append(child);
child.scrollIntoView();
element.scrollTop = element.scrollHeight;
});
} catch {
throw `error: cannot process subscribe:children directive because ListItemConverter is not defined. Usage: "subscribe:children={[list, converter]}"; you can find a more detailed example in the documentation`;