They are not fired at the right moment. The first time I click the button nothing happens. The second time I click the button (when it closes) it triggers ionFocus. Then it keeps working in that order until I click the background. Then it just stops working all together. (I tested this with console.log).