Filter should revert after cutting all the words out of the filter box

RESOLVED FIXED in M4

Status

Pancake
Front-end
RESOLVED FIXED
7 years ago
6 years ago

People

(Reporter: nhirata, Assigned: sfoster)

Tracking

unspecified
x86
Mac OS X

Details

1. log in
2. type in Hacker in the filter box
3. hit done
4. long tap on the word hacker and select "select all" -> "cut"
5. hit done and pan down

Expected: the website list is not filtered anymore
Actual: the website list is still filtered

Device: iPhone 3GS
iOS: 4.3.3 (8J2)

Updated

6 years ago
Assignee: nobody → gbrander
Target Milestone: --- → M4
It looks like pasting doesn't send an onChange event.
This works on desktop platform, but not on iOS -- find out what DOM events iOS sends for cut events.
This isn't working because we are using the `keyup` event -- iOS doesn't seem to fire this for cut events.
(Assignee)

Updated

6 years ago
Assignee: gbrander → sfoster
(Assignee)

Comment 4

6 years ago
Fixed in https://bitbucket.org/mozillapancake/pancake/changeset/d49513022ac8
Note that per: http://stackoverflow.com/questions/686995/jquery-catch-paste-input, a setTimeout is needed to read the updated value of the field after the cut/paste event. 
Both cut and pasted updates to the search input should work now
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.