Skip to content

Commit

Permalink
[0300-js-dom-todo] convert inappropriate elmenet (li => div)
Browse files Browse the repository at this point in the history
  • Loading branch information
version-1 committed Apr 30, 2024
1 parent 24acffb commit 79ce217
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions 0300-js-dom-todo/js/function.js
Expand Up @@ -105,7 +105,6 @@ const buildColumns = () => {
}

function renderTask(target, task, { onEditName, onEditDeadline, onComplete, onDelete }) {
const li = document.createElement('li')
const taskContainer = div('list__item')

const columns = buildColumns()
Expand All @@ -131,9 +130,10 @@ function renderTask(target, task, { onEditName, onEditDeadline, onComplete, onDe
}))

Object.values(columns).forEach((column) => taskContainer.appendChild(column))
li.appendChild(taskContainer)
const row = div('list__row')
row.appendChild(taskContainer)

target.appendChild(li)
target.appendChild(row)
}

function onSubmitTask(container) {
Expand Down
1 change: 0 additions & 1 deletion 0300-js-dom-todo/stylesheets/index.css

This file was deleted.

1 change: 0 additions & 1 deletion 0300-js-dom-todo/stylesheets/index.css.map

This file was deleted.

0 comments on commit 79ce217

Please sign in to comment.