During some test I noticed users wouldn't confirm a value by pressing enter on by selecting a item with the mouse.
So I'm now submitting also "on blur", when a user presses tab or mouse clicks somewhere else.
This can be done in the 7.x-2.x-dev version by adding the following in autocomplete_deluxe.js to the blur function.

var value = jqObject.val();
if(value != '') {
  var ui_item = {
    label: value,
    value: value
  };
  self.addValue(ui_item);
}

Would be great if this could be an configurable option.

Comments

s.daniel’s picture

Status: Active » Needs review
StatusFileSize
new582 bytes

I did some usability testing and had the same experience. People don't expect to loose their input when tabbing to the next field!

I can't think of a use case where it would make sense to delete the text so I think this should be default.

Attached is a patch.

bleen’s picture

Status: Needs review » Reviewed & tested by the community

This is a much better UX

bleen’s picture

Issue summary: View changes

clean up

  • sepgil committed 7b939aa on 7.x-2.x authored by s.Daniel
    Issue #1853896 by s.Daniel: Submit on blur option
    
sepgil’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed

Thx, just comitted the patch.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sepgil’s picture

Status: Closed (fixed) » Needs work

I had to revert this patch, since it caused the issue described in #1827336: Typing a partial value and clicking on the match creates new value based on the partial value. I additionally found out, that it didn't work jQuery 1.7, so it was somehow useless any way(at least for me).
It would still be nice to have this behaviour, but I currently don't have the time to implement this feature correctly. It would be cool, if someone else could create a new proper patch.

rajab natshah’s picture

Status: Needs work » Closed (outdated)