feat: special agreements for disposition
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { Controller } from '@hotwired/stimulus'
|
||||
|
||||
export default class extends Controller {
|
||||
connect() {
|
||||
this.element.style.height = 'auto'
|
||||
this.resize()
|
||||
}
|
||||
|
||||
resize() {
|
||||
this.element.style.height = `${this.element.scrollHeight}px`
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user