javascript – Replacing select options on focus via knockout.js doesn't work on iOS Safari-ThrowExceptions

Exception or error:

This is a follow up question to a solution for another question of mine. Replacing the elements works fine on any desktop browser I’ve tested (FF, Edge, Chrome), but on my test iPad, it still shows the flags instead of the country names.

I already made sure, that the focus event fires on iOS.

To replicate the issue, you can just open the fiddle linked in the question above on iOS and your regular desktop browser and compare the result. On the desktop, it will show full country names in the expanded dropdown. On iOS Safari it will show two-letter ISO codes instead, which is not the expected behavior.

Do you have an idea, why Brother Woodrow’s solution doesn’t work on iOS Safari?

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *