Skip to content

Commit

Permalink
fix(frontend): input autosize on default value (#5080)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoCasa authored Jan 17, 2025
1 parent 742d04d commit d1794c9
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions frontend/src/lib/autosize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ export const action = (node) => {

const setInitialHeight = () => {
let height = 0

const style = window.getComputedStyle(node)
const visible = style?.getPropertyValue('visibility') === 'hidden'

if (visible === false) {
return
}

if (node.value) {
height = node.scrollHeight
} else {
Expand Down

0 comments on commit d1794c9

Please sign in to comment.