pull/4085/head
lianahus 1 year ago committed by Aniket
parent b0a3662a83
commit bcf10f4eb6
  1. 4
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx

@ -812,9 +812,7 @@ const typewrite = (elementsRef, message, callback) => {
count++ count++
elementsRef.innerText = message.substr(0, count) elementsRef.innerText = message.substr(0, count)
// scroll when new line ` <br> // scroll when new line ` <br>
if (elementsRef.lastChild.tagName === `BR`) { if (elementsRef.lastChild.tagName === `BR`) callback()
callback()
}
if (message.length === count) { if (message.length === count) {
clearInterval(id) clearInterval(id)
callback() callback()

Loading…
Cancel
Save