Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#32174 closed defect (bug) (fixed)

Clearing Search field in Link Modal with "X" Fails to Reset Search Results

Reported by: mrwweb's profile mrwweb Owned by: iseulde's profile iseulde
Milestone: 4.3 Priority: normal
Severity: normal Version:
Component: Editor Keywords: has-patch
Focuses: ui Cc:

Description

At least on Windows in Chrome and IE, entering a search term in the "Or link to existing content" Search field and then removing it with the "X" in the search field fails to reset the search results i.e. the results for the removed term still appear. Any keystroke in the field seems to trigger the search field to reset (so a SPACE, BACKSPACE, or anything else). Closing and re-opening the modal does not fix the issue either.

This apparently does not affect Firefox since it doesn't add the "X" for types="search" <input>s.

Animated GIF demo of the issue: https://cloudup.com/cMhTTbYTpWm

Attachments (1)

32174.patch (457 bytes) - added by iseulde 10 years ago.

Download all attachments as: .zip

Change History (7)

#1 @netweb
10 years ago

  • Version changed from 4.2.1 to 4.2

@iseulde
10 years ago

#2 follow-up: @iseulde
10 years ago

  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.3
  • Version 4.2 deleted

#3 in reply to: ↑ 2 @mrwweb
10 years ago

Replying to iseulde:

Tested. Worked for me in latest Chrome and IE.

#4 @obenland
10 years ago

  • Owner set to iseulde
  • Status changed from new to assigned

This ticket was mentioned in Slack in #design by helen. View the logs.


10 years ago

#6 @iseulde
10 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 32593:

Link modal: reset search results appropriately

Reset the search results when the input field is emptied with the
browser's "clear" button inside that field.

Fixes #32174.

Note: See TracTickets for help on using tickets.