diff --git a/bun.lockb b/bun.lockb index 04061f2c..5ab345ee 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/dist/index.js b/dist/index.js index dd82c38f..df18b9fa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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`; diff --git a/package.json b/package.json index 5e9d2059..15b0a7dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "bloatless-react": "^1.2.4", + "bloatless-react": "^1.2.5", "esbuild": "latest", "udn-frontend": "^1.0.6" },