Ticket #7674 (closed bug: fixed)
Autocomplete doesn't work with textareas
| Reported by: | meh-cfl | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | git |
| Component: | ui.autocomplete | Version: | git |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Attaching the autocomplete plugin to a textarea doesn't show the autocomplete search menu when typing text.
Steps to reproduce:
- Create a text area and attach the autocomplete plugin to it.
- 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.
Change History
comment:2 Changed 21 months ago by meh-cfl
I've had another go. Failing test case added in https://github.com/jquery/jquery-ui/pull/444.
comment:3 Changed 21 months ago by scott.gonzalez
- Status changed from new to closed
- Resolution set to worksforme
Works for me: http://jsbin.com/otavey/edit#javascript,html
Please provide a page showing the problem.
comment:4 Changed 21 months ago by scott.gonzalez
- Status changed from closed to reopened
- Resolution worksforme deleted
Sorry, didn't see that this was filed against master, since you referenced a regression over a version 2 releases ago.
comment:5 Changed 21 months ago by rdworth
This regression was introduced by commit 5095871 with the addition of line 42:
this.valueMethod = this.element[ this.element.is( "input" ) ? "val" : "text" ];
comment:6 Changed 21 months ago by Scott González
- Status changed from reopened to closed
- Resolution set to fixed
Autocomplete: Fixed setting of valueMethod for textareas. Fixes #7674 - Autocomplete doesn't work with textareas.
Changeset: c5ba0535cf8fad222bf54249fb74339faafa9310


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