Safari doesn't support CSS field-sizing: content so we can shim it for now

This commit is contained in:
Jason Zimdars
2025-05-29 14:19:48 -05:00
parent 6a88655ed1
commit 32ae94524a
5 changed files with 56 additions and 11 deletions
@@ -0,0 +1,13 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = ["textarea", "wrapper"]
connect() {
this.resize()
}
resize() {
this.wrapperTarget.setAttribute("data-autoresize-clone-value", this.textareaTarget.value)
}
}