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 ?? ' ' "
@@ -196,10 +197,16 @@ export default {
196197 if (! this .streaming ()) {
197198 return
198199 }
199- const scrollableArea = this .$refs .input ? .$el ? .querySelector (' #' + this .id )
200- if (scrollableArea) {
201- scrollableArea .scrollTo (0 , scrollableArea .scrollHeight )
202- }
200+ this .$nextTick (() => {
201+ const scrollableArea = this .$refs .input ? .$el ? .querySelector (' #' + this .id )
202+ if (scrollableArea) {
203+ scrollableArea .scrollTo (0 , scrollableArea .scrollHeight )
204+ }
205+ const richText = this .$refs .richText ? .$el
206+ if (richText) {
207+ richText .scrollTo (0 , richText .scrollHeight )
208+ }
209+ })
203210 },
204211 },
205212
You can’t perform that action at this time.
0 commit comments