Skip to content

Why I am getting that error? #455

Discussion options

You must be logged in to vote

Your code has a few bugs.

Specifically, for this part:

vanX.list(() => div({ id: "table-body" }), r_data.rows, (row, row_deleter, row_index) =>
    vanX.list(() => div({ class: "flex border-b text-sm" }), row, (elem, elem_deleter, elem_index) =>
        div({
            class: `col-${elem_index} p-2 border-r focus:outline-none`,
            style: () => `width: ${r_data.columns[row_index].width.val}px`,
            contentEditable: true,
            textContent: `${row_index}-${elem_index}`,
            onblur: (e) => {
                r_rows[row_index][elem_index].val = e.target.textContent;
            }
        })
    )
))
  1. vanX.list(() => div({ class: "flex border-b text-sm" }), row,…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@the-man-with-a-golden-mind
Comment options

Comment options

You must be logged in to vote
1 reply
@the-man-with-a-golden-mind
Comment options

Answer selected by Tao-VanJS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants