json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

dynamic ui-select search the beginning of the string,i want to search The string anywhere in the result string #880

Closed kirantejj closed 7 years ago

kirantejj commented 7 years ago

ex: the below are the dynamic select dropdown values

1)cars : cars 1.1 :cars 1.2 2)cars : cars 1.1:cars1.3 senerio 1: if i type cars it is showing dropdown values senerio 2: if i type cars: cars 1.1 it is showing dropdown values Senerio 3: But if i type cars 1.1 the dropdown values are not showing ,it does not search middle characters.

need solution?

Enhancement

As a user/developer, when I ... I should be able to ...

Expected behaviour

I expected ...

Actual behaviour

It actually ...

Gist/Plunker/Demo

Description

Related issues

This is/maybe related to ...

@json-schema-form/angular-schema-form-lead

kirantejj commented 7 years ago

issue resolved I added ** item[prop].toString().toLowerCase().indexOf(text) > -1 on angular-schema-form-dynamic-select.js** file on line no 117