File tree Expand file tree Collapse file tree
website/docs/_samples/ai/TextArea/Extended Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -366,7 +366,6 @@ <h1 class="demo-title">AI TextArea Component</h1>
366366 stopTypingAnimation ( ) ;
367367 currentGenerationIndex += 1 ;
368368
369- // Save the stopped generation if there is content
370369 const stoppedValue = textarea . value ;
371370 if ( stoppedValue . trim ( ) ) {
372371 const menuItem = findMenuItemByAction ( currentActionInProgress ) ;
@@ -381,8 +380,6 @@ <h1 class="demo-title">AI TextArea Component</h1>
381380 timestamp : new Date ( ) . toISOString ( )
382381 } ) ;
383382
384- // Restore the previous content
385- textarea . value = contentBeforeGeneration ;
386383 currentIndexHistory = versionHistory . length - 1 ;
387384 buildMenuFromConfig ( ) ;
388385 updateComponentState ( ) ;
Original file line number Diff line number Diff line change @@ -270,7 +270,6 @@ function stopGeneration() {
270270 stopTypingAnimation ( ) ;
271271 currentGenerationIndex += 1 ;
272272
273- // Save the stopped generation if there is content
274273 const stoppedValue = textarea . value ;
275274 if ( stoppedValue . trim ( ) ) {
276275 const action = currentActionInProgress || 'generate' ;
@@ -284,8 +283,6 @@ function stopGeneration() {
284283 timestamp : new Date ( ) . toISOString ( )
285284 } ) ;
286285
287- // Restore the previous content
288- textarea . value = contentBeforeGeneration ;
289286 currentIndexHistory = versionHistory . length - 1 ;
290287 buildMenuFromConfig ( ) ;
291288 updateComponentState ( ) ;
You can’t perform that action at this time.
0 commit comments