blessed-contrib icon indicating copy to clipboard operation
blessed-contrib copied to clipboard

How to change the behaviour at press enter on empty tree

Open 4sh3 opened this issue 6 years ago • 0 comments

Hi,

when I press enter on a empty tree show me that error, how can change that behaviour for "do nothing"?

Error. TypeError: Cannot read property 'children' of undefined

at List.<anonymous> (node_modules/blessed-contrib/lib/widget/tree.js:46:22)
at List.EventEmitter._emit (node_modules/blessed/lib/events.js:94:20)
at List.EventEmitter.emit (node_modules/blessed/lib/events.js:117:12)
at Program.<anonymous> (node_modules/blessed/lib/widgets/screen.js:603:15)
at Program.emit (events.js:127:13)
at node_modules/blessed/lib/program.js:410:15
at Array.forEach (<anonymous>)
at ReadStream.input.on.input._keypressHandler (node_modules/blessed/lib/program.js:408:23)
at ReadStream.emit (events.js:127:13)
at ReadStream.input.on.input._keypressHandler (node_modules/blessed/lib/program.js:398:18)

4sh3 avatar Apr 08 '18 14:04 4sh3