kadoshms / ionic2-autocomplete

Ionic 2 autocomplete component
MIT License
149 stars 108 forks source link

ERROR TypeError: "value.replace is not a function" #164

Closed anujsinghwd closed 4 years ago

anujsinghwd commented 6 years ago

screen shot 2018-08-08 at 12 43 05 am

akashbiz commented 6 years ago

+1, same issue

jrquick17 commented 5 years ago

https://github.com/kadoshms/ionic2-autocomplete/issues/168#issuecomment-468690027

replace() is a JavaScript function for strings. If the function does not exist then value is not a string. Looking into BoldPrefix it seems that you are not passing a string for the label. Make sure your labelAttribute or the getLabelAttribute are returning strings.