Skip to content

Commit df1c34f

Browse files
committed
Handle paste event if input event not supported
1 parent f39c307 commit df1c34f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/expanding.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ function Expanding (textarea) {
1313
wrap(textarea, this.element)
1414
this.element.appendChild(this.textareaClone.element)
1515

16+
var inputHandler = this.update.bind(this)
1617
this.textarea.on(inputEvent, this.update.bind(this))
18+
if (inputEvent !== 'input') this.textarea.on('paste', inputHandler)
19+
1720
this.update()
1821
}
1922

0 commit comments

Comments
 (0)