Safari doesn't support CSS field-sizing: content so we can shim it for now
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user