Skip to content

Commit f0420fb

Browse files
committed
(fix) input value react compatibility
1 parent 43f05bb commit f0420fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/Room/Room.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,9 +1089,9 @@ export default {
10891089
setTimeout(() => element.classList.remove('vac-scroll-smooth'))
10901090
}, 50)
10911091
},
1092-
onChangeInput: debounce(function (e) {
1093-
if (e?.target?.value || e?.target?.value === '') {
1094-
this.message = e.target.value
1092+
onChangeInput: debounce(function () {
1093+
if (this.getTextareaRef()?.value || this.getTextareaRef()?.value === '') {
1094+
this.message = this.getTextareaRef()?.value
10951095
}
10961096
this.keepKeyboardOpen = true
10971097
this.resizeTextarea()

0 commit comments

Comments
 (0)