nitin42 / terminal-in-react

👨‍💻 A component that renders a terminal
http://terminal-in-react.surge.sh/
MIT License
2.12k stars 151 forks source link

allowTabs not disapearing when set to 'false' or 'none' #102

Closed PeterYama closed 3 years ago

PeterYama commented 3 years ago

<Terminal allowTabs='false' hideTopBar="true" startState='maximised' watchConsoleLogging color='green' backgroundColor='black' barColor='black' style={{ fontWeight: "bold", fontSize: "1em" }} commands={{ 'open-google': () => window.open('https://www.google.com/', '_blank'), showmsg: this.showMsg, popup: () => alert('Terminal in React') }} descriptions={{ 'open-google': 'opens google.com', showmsg: 'shows a message', alert: 'alert', popup: 'alert' }} msg='Welcome to Caleb and Brown Logs Page' />

Topbar is hidding but allowTabs still usable

Never mind, solved when passing the value as an object instead of string allowTabs={false}