Skip to content

autocomplete - problem with ajax/json response #516

@MarcAckermann

Description

@MarcAckermann

Hi,
this is a new issue in version 1.26.14:

The data returned for the autocomplete via ajax/json is in the standard jQuery autocomplete format
[{label:"Donald Duck", "value":1}, {label:"Mickey Mouse", "value":2}]
This is causing a problem now. See this jsFiddle.

TypeError: base.last.val.substring is not a function
jquery.keyboard.js (Line 628)

If I change the type of the value variable from int to string it is working fine:
[{label:"Donald Duck", "value":"1"}, {label:"Mickey Mouse", "value":"2"}]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions