Regarding this question of mine: Why is my onchange function called twice when using .focus() ?
There are several answers and one provides a solution that looks valid. Now I also did some testing and came up with a quick fix myself that, as it turns out, would be implemented anyway in a later stage1.
So now I have two answers. The one that is best for my situation (my own answer) and one that I feel is a better 'overall' solution.
Which would be the best to accept?
1: My hack was to remove an onclick listener. This is sortof a hack to stop a bug where it gets called twice when it shouldn't, but as I need it to fire only once anyway, I would have removed it in any case later. If that makes sense :)