Tip: Use the blur() method to remove focus from the current window.
Most of the time this iPhone camera focus issue happens on a particular iPhone model like iPhone 6/6 Plus, iPhone 5s. The onfocus event occurs when an element gets focus. The method elem.focus() doesn’t work on them, and focus/blur events are never triggered.
The main difference is that the onfocus event does not bubble.