Skip to main content

Search and Top Navigation

#7674 closed bug (fixed)

Opened August 28, 2011 09:43PM UTC

Closed August 31, 2011 12:46AM UTC

Last modified August 31, 2011 12:48AM UTC

Autocomplete doesn't work with textareas

Reported by: meh-cfl Owned by:
Priority: minor Milestone: git
Component: ui.autocomplete Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:
Description

Attaching the autocomplete plugin to a textarea doesn't show the autocomplete search menu when typing text.

Steps to reproduce:

1. Create a text area and attach the autocomplete plugin to it.

2. Type some text into the text box which appears in the autocomplete source.

Expected:

The autocomplete menu should be displayed.

Actual:

The autocomplete menu isn't displayed.

Notes:

This is a regression over version 1.8.14.

I will also commit a failing test for this shortly.

Attachments (0)
Change History (7)

Changed August 28, 2011 10:11PM UTC by meh-cfl comment:1

Failing test added as part of https://github.com/jquery/jquery-ui/pull/443.

Changed August 29, 2011 04:15PM UTC by meh-cfl comment:2

I've had another go. Failing test case added in https://github.com/jquery/jquery-ui/pull/444.

Changed August 29, 2011 04:32PM UTC by scottgonzalez comment:3

resolution: → worksforme
status: newclosed

Works for me: http://jsbin.com/otavey/edit#javascript,html

Please provide a page showing the problem.

Changed August 29, 2011 04:34PM UTC by scottgonzalez comment:4

resolution: worksforme
status: closedreopened

Sorry, didn't see that this was filed against master, since you referenced a regression over a version 2 releases ago.

Changed August 29, 2011 05:12PM UTC by rdworth comment:5

This regression was introduced by commit 5095871 with the addition of line 42:

		this.valueMethod = this.element[ this.element.is( "input" ) ? "val" : "text" ];

Changed August 31, 2011 12:46AM UTC by Scott González comment:6

resolution: → fixed
status: reopenedclosed

Autocomplete: Fixed setting of valueMethod for textareas. Fixes #7674 - Autocomplete doesn't work with textareas.

Changeset: c5ba0535cf8fad222bf54249fb74339faafa9310

Changed August 31, 2011 12:48AM UTC by scottgonzalez comment:7

milestone: 1.9git