feat: mailing to filtered teamer list
addresses #869dv9bur
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
import { Controller } from '@hotwired/stimulus'
|
||||
|
||||
export default class extends Controller {
|
||||
// the default of one row keeps every existing textarea exactly as it was, fields that
|
||||
// are written into at length can ask for a taller floor to grow from
|
||||
static values = { minRows: { type: Number, default: 1 } }
|
||||
|
||||
connect() {
|
||||
this.element.rows = 1
|
||||
this.element.rows = this.minRowsValue
|
||||
this.minHeight = this.element.scrollHeight
|
||||
this.resize()
|
||||
}
|
||||
|
||||
resize() {
|
||||
this.element.style.height = 'auto'
|
||||
this.element.style.height = `${this.element.scrollHeight}px`
|
||||
this.element.style.height = `${Math.max(this.element.scrollHeight, this.minHeight)}px`
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user