update
This commit is contained in:
Vendored
+2
-2
@@ -185,13 +185,13 @@
|
|||||||
try {
|
try {
|
||||||
const [listState, toElement] = value;
|
const [listState, toElement] = value;
|
||||||
listState.handleAddition((newItem) => {
|
listState.handleAddition((newItem) => {
|
||||||
const child = toElement(newItem, listState);
|
const child = toElement(newItem);
|
||||||
listState.handleRemoval(
|
listState.handleRemoval(
|
||||||
newItem,
|
newItem,
|
||||||
() => child.remove()
|
() => child.remove()
|
||||||
);
|
);
|
||||||
element.append(child);
|
element.append(child);
|
||||||
child.scrollIntoView();
|
element.scrollTop = element.scrollHeight;
|
||||||
});
|
});
|
||||||
} catch {
|
} 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`;
|
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`;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bloatless-react": "^1.2.4",
|
"bloatless-react": "^1.2.5",
|
||||||
"esbuild": "latest",
|
"esbuild": "latest",
|
||||||
"udn-frontend": "^1.0.6"
|
"udn-frontend": "^1.0.6"
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user