You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use greetings as a function can call callback function. The greetings is rendered multiple times. 2 times on init and on every resize. Found by @leif in #853
Expected behavior
It should render once
Actual behavior
it renders multiple times
Steps to reproduce
Use this code:
constterm=$('body').terminal({},{greetings(cb){cb(`This Terminal has ${this.cols()} cols`);}});
Browser and OS
All
Write code
Write unit tests
The text was updated successfully, but these errors were encountered:
Issue summary
When you use greetings as a function can call callback function. The greetings is rendered multiple times. 2 times on init and on every resize. Found by @leif in #853
Expected behavior
It should render once
Actual behavior
it renders multiple times
Steps to reproduce
Use this code:
Browser and OS
All
The text was updated successfully, but these errors were encountered: