mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
The issue happened because styles connected with todo list were applied directly to HTML in Preview component. I added class to `li` tag of each todo item and style it from css.
12 lines
212 B
JavaScript
12 lines
212 B
JavaScript
export function lastFindInArray (array, callback) {
|
|
for (let i = array.length - 1; i >= 0; --i) {
|
|
if (callback(array[i], i, array)) {
|
|
return array[i]
|
|
}
|
|
}
|
|
}
|
|
|
|
export default {
|
|
lastFindInArray
|
|
}
|