File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -1114,19 +1114,10 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
1114
1114
return read ( reader , target ) ;
1115
1115
} ;
1116
1116
1117
- messageStore . $subscribe ( ( args , state ) => {
1118
- if ( ! messageStore . userMessage ) {
1119
- asyncScrollToBottom ( )
1120
- }
1121
- } )
1122
-
1123
- /*
1124
- // it seems that watch has a small delay to scroll
1125
1117
watch ( computed ( ( ) => messageStore . conversation ) ,
1126
1118
( newValue , oldValue ) => {
1127
1119
asyncScrollToBottom ( )
1128
1120
} , { deep : true } ) ;
1129
- */
1130
1121
1131
1122
const asyncScrollToBottom = async ( ) => {
1132
1123
await nextTick ( ) ;
@@ -1169,7 +1160,6 @@ <h5 class="font-weight-bold">{{ column.key }}</h5>
1169
1160
const chatElement = document . querySelector ( ".chat-bot" ) ;
1170
1161
if ( chatElement ) {
1171
1162
chatElement . style . marginBottom = `${ entry . contentRect . height } px`
1172
- asyncScrollToBottom ( )
1173
1163
}
1174
1164
}
1175
1165
}
You can’t perform that action at this time.
0 commit comments