Replies: 6 comments 7 replies
-
Beta Was this translation helpful? Give feedback.
-
show me code for |
Beta Was this translation helpful? Give feedback.
-
Maybe it's something to do with |
Beta Was this translation helpful? Give feedback.
-
Or if you really need a ref, put it in let itemSelectId;
onChange((changedProps)=>{
props = changedProps;
itemSelectId = ref(props.item.id);
}); |
Beta Was this translation helpful? Give feedback.
-
What do you use this return vido.html`<div id=${props.item.id} ... >`; |
Beta Was this translation helpful? Give feedback.
-
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). |
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions