Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

$(select).selectmenu('disable') causes issues on iOS for native selects #1816

Closed
gerges opened this Issue · 6 comments

3 participants

@gerges

On iOS, I've found that native select menus disabled with .selectmenu('disable') are still opened, and can cause some odd behavior on the device. Once opened, the native menu cannot be closed unless the browser is killed or the user refreshes/leaves the page.

The issue, oddly enough, appears to be caused by setting the following style

.ui-disabled,
.ui-disabled a {
    cursor: default !important;
}

I was able to verify this using the latest jQuery mobile, on both iPad, iPhone and the emulators for both. Please let me know if you have any issues replicating the issue, or would like me to provide an example. As the majority of the devices supported don't show a cursor, I'd assume the fix would just be to remove, or modify this style so it does not apply to select menus. I would also assume there's an underlying iOS issue here.

Please let me know if you have any questions.

@toddparker

Interesting. Could you post up a JSBin demo page with this demo? We'll take a look.

@gerges

Of course. http://jsbin.com/atola5/.

Also, here are screenshots of the emulators
http://imgur.com/a/IvhOl

I think this may be iOS version dependent, definitely an issue in iOS 4...but possibly not in 3. Needs more research

@gerges gerges closed this
@gerges gerges reopened this
@gerges

Woops...They really need to move that comment and close button

@gseguin gseguin referenced this issue from a commit in gseguin/jquery-mobile
@gseguin gseguin Fix for issue #1816: $(select).selectmenu('disable') causes issues on…
… iOS for native selects
c3e5015
@jblas

Landed @gseguin's fix:

6e7e4d0

Thank you @gseguin!

@jblas jblas closed this
@gerges

Just as a follow-up, I no longer have this issue on latest. Thanks guys!

@jblas

@gerges

Thanks for the follow-up confirmation!

@scottbw scottbw referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.