TL;DR: Use ChangeDetectorRef's detectChanges() at the end of your callback code.
While developing my electron.js app, I've had the following workflow:
*
I have an input element and a button
*
The input element is capable of editing a path
*
The button triggers a File Open