Pass DOM node to widget destroy function
Pass DOM node to widget destroy function

FEATURE: Widget decorations now accept a `destroy` option, which will be called
when the widget is removed from the view.

See https://discuss.prosemirror.net/t/unmounting-a-decoration-widget-created-with-react/3050

ProseMirror/prosemirror-view