ioBroker.javascript icon indicating copy to clipboard operation
ioBroker.javascript copied to clipboard

[Bug]: Javascript-Adapter bug in “hide tab”

Open raschy opened this issue 1 year ago • 1 comments

I'm sure that

  • [X] This issue is still present in the current beta version of this adapter
  • [X] There is no other (open) issue with the same topic (use the search!)
  • [X] This issue is not described in the adapter documentation / FAQ (read the docs!)

Script type

Editor

The problem

If you have just edited a script/blockly but have not yet saved it and then click on the Show/Hide tab of the files, the unsaved changes are gone. Up to version 8.6.0, the changes remained available.

iobroker.current.log (in debug mode!)

Look also at: https://forum.iobroker.net/topic/77257/javascript-bug-in-ausblenden-lasche-der-scripte

Version of nodejs

20.18.0

Version of ioBroker js-controller

7.0.0

Version of adapter

8.7.0

raschy avatar Oct 04 '24 21:10 raschy

Just got the same problem and lost several lines of code due to this issue. Really annoying!

Version of nodejs : 22.21.0 Version of ioBroker js-controller: 7.0.7 Version of adapter: 8.9.2 Version of Browser: Firefox for Windows: 144.0.2

Describe the solution you'd like Prevent navigation unless all changes are stored or at least warn and ask the users if they want to switch.

Cisalpinos avatar Nov 13 '25 12:11 Cisalpinos