I have fields on a form which trigger methods on losing focus. However, if the user jumps directly from entering data (field still selected) to pressing a button, nothing happens on the first button click. Obviously the onFocusLost method is doing its stuff on the first click but the user doesn’t know that.
I’ve tried inserting controller.saveData(); at the beginning of the button’s method. That still doesn’t allow for single click action.
The user won’t necessarily always jump from one of these fields to the button, so I can’t call the button’s script from the onFocusLost method.