Skip to content

Commit

Permalink
feat: implement textarea removal function
Browse files Browse the repository at this point in the history
This function removes a textarea element from the DOM.
  • Loading branch information
chessurisme committed May 23, 2024
1 parent 70eb6c1 commit 1225f82
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/textarea/textarea-remove.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict'

function removeTextarea(config) {
const { id } = config
const TEXTAREA = document.getElementById(id)
if (!TEXTAREA) return
TEXTAREA.remove()
}

export { removeTextarea }

0 comments on commit 1225f82

Please sign in to comment.