Bug 137989 - [iOS] iPhone unselecting items in <select multiple> shows incorrect values selected
Summary: [iOS] iPhone unselecting items in <select multiple> shows incorrect values se...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-10-22 17:26 PDT by Joseph Pecoraro
Modified: 2014-10-23 12:48 PDT (History)
5 users (show)

See Also:


Attachments
[PATCH] Proposed Fix (2.01 KB, patch)
2014-10-22 17:28 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2014-10-22 17:26:14 PDT
iPhone unselecting items in <select multiple> shows incorrect values selected.

* TEST

    <select multiple="multiple" id="stuff" name="stuff">
        <option value="1">0001</option>
        <option value="2">0002</option>
        <option value="3">0003</option>
    </select>

* STEPS TO REPRODUCE
1. Load test
2. Tap the <select> and select 0001, 0002, and 0003
3. Tap to unselect 0001, 0002, 0003
  => expected to see "3 items" => "2 items" => "0003", => "0 Items"
  => actual results were "3 items" => "0001" => "0002" => "0003"

We aren't treating taps on multi select form controls as multiple selection taps. We are treating them as full selections.
Comment 1 Joseph Pecoraro 2014-10-22 17:26:31 PDT
<rdar://problem/18729429>
Comment 2 Joseph Pecoraro 2014-10-22 17:28:05 PDT
Created attachment 240310 [details]
[PATCH] Proposed Fix
Comment 3 WebKit Commit Bot 2014-10-23 12:38:25 PDT
Comment on attachment 240310 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 240310

Committed r175135: <http://trac.webkit.org/changeset/175135>