Skip to content

Commit

Permalink
Fixed typo in virtual-list files (Core/React/Svelte) (#4277)
Browse files Browse the repository at this point in the history
* Update virtual-list.jsx

* Update virtual-list.html

* Update virtual-list-vdom.html

* Update virtual-list.svelte
  • Loading branch information
DAnn2012 authored Jul 17, 2024
1 parent 468ae8f commit f524a2e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions kitchen-sink/core/pages/virtual-list-vdom.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
for (var i = 0; i < items.length; i++) {
if (items[i].title.toLowerCase().indexOf(query.toLowerCase()) >= 0 || query.trim() === '') found.push(i);
}
return found; //return array with mathced indexes
return found; //return array with matched indexes
},
// Item height
height: $theme.ios ? 63 : ($theme.md ? 73 : 77),
Expand All @@ -94,4 +94,4 @@

return $render;
}
</script>
</script>
4 changes: 2 additions & 2 deletions kitchen-sink/core/pages/virtual-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
for (var i = 0; i < items.length; i++) {
if (items[i].title.toLowerCase().indexOf(query.toLowerCase()) >= 0 || query.trim() === '') found.push(i);
}
return found; //return array with mathced indexes
return found; //return array with matched indexes
},
// List item render
renderItem(item) {
Expand All @@ -99,4 +99,4 @@

return $render;
}
</script>
</script>
2 changes: 1 addition & 1 deletion kitchen-sink/react/src/pages/virtual-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default () => {
)
found.push(i);
}
return found; // return array with mathced indexes
return found; // return array with matched indexes
};
const renderExternal = (vl, newData) => {
setVlData({ ...newData });
Expand Down
2 changes: 1 addition & 1 deletion kitchen-sink/svelte/src/pages/virtual-list.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
if (items[i].title.toLowerCase().indexOf(query.toLowerCase()) >= 0 || query.trim() === '')
found.push(i);
}
return found; // return array with mathced indexes
return found; // return array with matched indexes
}
function renderExternal(virtualList, virtualListData) {
Expand Down

0 comments on commit f524a2e

Please sign in to comment.