Skip to content

Change event is triggered twice on autocomplete causing javascript error  #41

Description

@gledsonrabelo

When selecting a value in the JQuery UI version >= 1.9.0 the event onblur already is triggered synchronously. So call "blur()" again cause the change event trigger twice (the second trigger cause js error in wiquery-autocomplete.js).

I believe that to remove the problem it's need to delete the direct to onblur in line 137 in InnerAutocomplete subclass.

super.setSelectEvent(JsScopeUiEvent.quickScope(js.append("$(event.target).blur();")
.toString()));

The change in JQuery UI change event behavior is documented in http://jqueryui.com/upgrade-guide/1.9/#autocomplete

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions