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++
elementsRef.innerText = message.substr(0, count)
// scroll when new line ` <br>
if (elementsRef.lastChild.tagName === `BR`) {
callback()
}
if (elementsRef.lastChild.tagName === `BR`) callback()
if (message.length === count) {
clearInterval(id)
callback()

Loading…
Cancel
Save