listview ยท console.warn
"{name}" is not a listview event; expected o...
Printed by listview, prefixed [lattice], since 1.103.2.
Warnings reference › listview:event:*
- Identifier
listview:event:*- Raised by
- listview
- Since
- 1.103.2
What happened
createList's list.on() was given an event name the list never emits, so the handler can never run. The subscription is still made; the typo is named.
The fix
Use one of the documented events: itemClick, itemDoubleClick, beforeDrop, afterDrop, dragOut, selectionChange, input, change.
The smallest fix
list.on('itemClick', (e) => console.log(e.id));
Reference
Covered in full at the API reference.