sergiodlopes / jquery-flexdatalist

Flexible input autocomplete/datalist plugin for jQuery
http://projects.sergiodinislopes.pt/flexdatalist/
MIT License
365 stars 84 forks source link

switch from 2.0.5 to 2.2.1 -> requestContentType: 'json' and preselection of items not working any longer #151

Closed Dattel closed 6 years ago

Dattel commented 6 years ago

Hi, it's me again and i'll trying to update flexdatalist from 2.0.5 to 2.2.1 and realized, that the requestContentType JSON seems to be broken.

if (options.requestContentType === 'json') { settings.data = JSON.stringify(data); <--------------- "data" is undefined }

Another change/problem seems to be the definition of preselected values. I'll put the predefines in the value field of the HTML control as JSON. It worked with 2.0.5 but not working any longer with 2.2.1.

Dattel commented 6 years ago

seems to be a duplicate of: https://github.com/sergiodlopes/jquery-flexdatalist/issues/149