Skip to main content

Bug Tracker

Side navigation

#7309 closed bug (patchwelcome)

Opened October 25, 2010 09:46PM UTC

Closed April 17, 2011 06:51PM UTC

Select List with multiple enabled doesn't fire onchange event on iPad

Reported by: branche.dude@gmail.com Owned by: branche.dude@gmail.com
Priority: low Milestone:
Component: event Version: 1.4.3
Keywords: ipad, change Cc:
Blocked by: Blocking:
Description

I have a form with a select list that allows users to choose multiple items. I am using

$('#my_form select').change(validateInput);

to fire an onChange event whenever an item is selected or de-selected in my select list. It works fine on my desktop machine but the validateInput function does not run on iPad.

If I change my select list to set multiple selection to be false, then the onChange event fires just fine on iPad.

Attachments (0)
Change History (5)

Changed October 25, 2010 11:14PM UTC by SlexAxton comment:1

component: unfiledevent
keywords: → ipad, change
owner: → branche.dude@gmail.com
priority: undecidedlow
status: newpending

Can you create a reduced test case in jsFiddle for us to test? Thank you for your report.

Changed October 27, 2010 05:47PM UTC by branche.dude@gmail.com comment:2

status: pendingnew

Replying to [comment:1 SlexAxton]:

Can you create a reduced test case in jsFiddle for us to test? Thank you for your report.

Here you are: http://jsfiddle.net/uX8Fh/

I got this working with a onBlur event on the iPad as a workaround. So with this test case, on a desktop/laptop machine, you will see a "change" alert but on an iPad you will only see the "blur" alert.

Thanks.

Changed October 27, 2010 05:51PM UTC by anonymous comment:3

Replying to [comment:1 SlexAxton]:

Can you create a reduced test case in jsFiddle for us to test? Thank you for your report.

Here is an updated link http://jsfiddle.net/uX8Fh/1 with a select list with single selection as well to provide some comparison.

Changed October 29, 2010 05:41AM UTC by SlexAxton comment:4

status: newopen

I don't have an ipad to test on, but if those testcases fail, then this is worth putting in the queue. Thanks for your work.

Changed April 17, 2011 06:51PM UTC by john comment:5

resolution: → patchwelcome
status: openclosed

I think this is more to do with how the UI of the iPad works rather than something else. I'm not really sure that this is something that we can reasonably fix on our end - possibly something that can be tackled in jQuery Mobile.