danube / node-red-contrib-smarthome-powerswitch

European Union Public License 1.2
1 stars 1 forks source link

initval will only be overwritten oneditprepare #15

Closed danube closed 11 months ago

danube commented 11 months ago

JQuery call oneditprepare overwrites all initval with a specified default value. Hence, there is no initvalue but i.e. true in the relevant field. The problem is, if the node is dragged from the palette to the drawboard and immediately deployed (without ever opening the configuration), initval is set for those parameters using this mechanism, as oneditprepare has never been executed.

Originally posted by @Kilill in https://github.com/danube/node-red-contrib-smarthome-powerswitch/issues/13#issuecomment-1837153017

danube commented 11 months ago

Fixed in v1.0.0 with b4959928a9c5f5346b4e4fbcce2348175750717b