Replies: 6 comments 7 replies
|
show me code for |
|
Maybe it's something to do with |
|
Or if you really need a ref, put it in let itemSelectId;
onChange((changedProps)=>{
props = changedProps;
itemSelectId = ref(props.item.id);
}); |
|
What do you use this return vido.html`<div id=${props.item.id} ... >`; |
|
Aha, and onChange((changedProps)=>{
props = changedProps;
console.log(props.item.id); // it will print gstcid-1 gstcid-2 ... gstcid-158 while you scroll vertically
});Instead of creating a new (component) or slot - which is unfavorable in terms of performance - we use existing slots to render other items. Then we don't have to delete the html element and add a new one (time-consuming), we just replace the data and use the same html element (either slot or component). |


Uh oh!
There was an error while loading. Please reload this page.
Why is the newly added task ID clearly gstcid-5, but it is displayed as gstcid-2 in the slot? How to solve this problem
All reactions