I am using jQuery UI 1.9.2. I am using jQueryUI.dialog
to create a modal window.
I am getting a problem when the user tries to use the dialog in IE8. IE8 has a stupid issue where it cannot apply "focus" to an element if it is not visible on the page. My modal doesn't pop up immediately, so this error is causing the rest of the page to crash.
I have looked at this question: Prevent jQuery UI dialog from setting focus to first textbox
And while this and many other answers provide work-arounds (creating a hidden input
field just before the button to feign that none of the buttons have focus) this will not work for me because it is still trying to add focus
to a hidden element which will give that IE8 error.
Is there some kind of parameter or something in the modal dialog call that I can use to NOT add any focus at all?
If I had it my way, I would just like to tell the client to "suck it up and stop supporting 6-year old IE8" but I digress...