File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111 </label >
1212 <NcRichText
1313 v-if =" isOutput && hasValue && ! isEditing "
14+ ref="richText"
1415 class="rendered-output output-wrapper"
1516 :title =" t (' assistant' , ' Double-click to edit' )"
1617 :text =" value ?? ' ' "
@@ -178,10 +179,16 @@ export default {
178179 if (! this .streaming ()) {
179180 return
180181 }
181- const scrollableArea = this .$refs .input ? .$el ? .querySelector (' #' + this .id )
182- if (scrollableArea) {
183- scrollableArea .scrollTo (0 , scrollableArea .scrollHeight )
184- }
182+ this .$nextTick (() => {
183+ const scrollableArea = this .$refs .input ? .$el ? .querySelector (' #' + this .id )
184+ if (scrollableArea) {
185+ scrollableArea .scrollTo (0 , scrollableArea .scrollHeight )
186+ }
187+ const richText = this .$refs .richText ? .$el
188+ if (richText) {
189+ richText .scrollTo (0 , richText .scrollHeight )
190+ }
191+ })
185192 },
186193 },
187194
You can’t perform that action at this time.
0 commit comments