Bug Tracker

Opened 9 years ago

Closed 9 years ago

#7309 closed bug (patchwelcome)

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

Reported by: branche.dude@… Owned by: branche.dude@…
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.

Change History (5)

comment:1 Changed 9 years ago by SlexAxton

Component: unfiledevent
Keywords: ipad change added
Owner: set to branche.dude@…
Priority: undecidedlow
Status: newpending

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

comment:2 in reply to:  1 Changed 9 years ago by branche.dude@…

Status: pendingnew

Replying to 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.

comment:3 in reply to:  1 Changed 9 years ago by anonymous

Replying to 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.

comment:4 Changed 9 years ago by SlexAxton

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.

comment:5 Changed 9 years ago by john

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.

Note: See TracTickets for help on using tickets.