I made a custom node with some config properties... When from the UI I change one value of the config and I press "Done", the Deploy button is not enabled. BTW my custom nodes receive the config values.
Do I need to trigger manually some event to notify NodeRED that I need the Deploy button enabled?
in general, no, you do not need to trigger anything manually. The editor compares the node configuration before and after it has been edited and will enable the deploy button if it detects any changes.
Are you sure your custom node is applying the changes properly?
I think you are attempting to declare dataref as a function in this scope? That is not necessary. By defining dataref in the defaults, this.dataref it is generated for you.
Looks like you don't need to look up for changes by your self, NodeRED does that in your behalf. So, due to the value update this.dataref = NodeRED didin't see any change in its own value compare checking algoritm.