Skip to content

Commit

Permalink
fix(textarea): add checks for height bug in chat input (#1691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jekrimo authored Jan 11, 2024
1 parent fb443dd commit fe90712
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 53 deletions.
51 changes: 0 additions & 51 deletions kit/src/elements/textarea/event_listeners.js

This file was deleted.

10 changes: 8 additions & 2 deletions kit/src/elements/textarea/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ sendButton[1].addEventListener("click", (event) => {
textareas[0].value = "";
})

if (textareas[0].style.height === "66px") {
textareas[0].style.height = "22px";
switch (textareas[0].style.height) {
case "66px":
case "44px":
case "330px":
textareas[0].style.height = "22px";
break;
default:
break;
}

function inputListener(e) {
Expand Down

0 comments on commit fe90712

Please sign in to comment.