Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#5453 closed bug (fixed)

Autocomplete: combobox demo doesn't remove invalid values

Reported by: jzaefferer Owned by:
Priority: major Milestone: 1.8.3
Component: ui.autocomplete Version: 1.8
Keywords: Cc:
Blocked by: Blocking:

Description

The select-event is only triggered with a valid selection. Probably need to use change instead to catch invalid inputs and drop those.

Change History (7)

comment:1 Changed 6 years ago by jzaefferer

Blocked by #5490 - using change instead of selected breaks the combobox completely.

comment:2 Changed 6 years ago by jzaefferer

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

comment:3 Changed 6 years ago by rdworth

  • Milestone changed from 1.9 to 1.8.1

comment:4 Changed 6 years ago by scottgonzalez

  • Resolution fixed deleted
  • Status changed from closed to reopened

From aaronbarker:

If you type in something like "java", select the item you want and then hit return, the item you selected is placed in the field and your cursor is left in place. You can now type additional characters before leaving the field that are not removed.

comment:5 Changed 6 years ago by scottgonzalez

  • Milestone changed from 1.8.1 to 1.9
  • Resolution set to fixed
  • Status changed from reopened to closed

Fixed in c2c09e8.

comment:6 Changed 6 years ago by scottgonzalez

  • Milestone changed from 1.9 to 1.8.3

comment:7 Changed 5 years ago by Scott González

Autocomplete: Clear selectedItem property whenever the user types something. Also updated combobox to clear the select element when clearing the text element. Fixes #5453 - Autocomplete: combobox demo doesn't remove invalid values.

Changeset: c2c09e89538ce071efba7ca1e923b5627c236f8c

Note: See TracTickets for help on using tickets.