-
Notifications
You must be signed in to change notification settings - Fork 586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Select multiple - search in items : error value.match is not a function (due to SafeHtmlImpl) #438
Comments
Not sure how you will get hold of SafeHtmlImpl. But I am using it locally with the following fix.
|
Same as #437 |
@alpeshv Where did you place /replace this line with? |
@theunreal Inside select-pipes.ts, changing signature of transform method and adding one line inside it at the top. Rest will remain same. |
I can't highlight enough, how important it is to fix this asap. |
+1 myExceptionHandler.service.ts:15 Stack : TypeError: value.match is not a function
|
@alpeshv Changing select-pipes.d.ts with the following code:
don't update anything in the app, only when updating the JS files. I guess I need to re-build the package, how I can do that? |
@theunreal I have not tried to change npm package directly inside my project yet but you shouldn't be changing them anyway. You should download and include select.module.ts in your project and all the related .ts files which are in the 'select' folder instead of downloading it using npm and change references accordingly. If your project is a ts project then your ts files are being transpiled into js files using tsc command somewhere. Anyway select2 is not stable at all. idField and textField properties are also not fully working. I had to fix them myself. |
Any news on this ? |
+1 having the same problem |
+1 |
2 similar comments
+1 |
+1 |
This is taking too long, it's blocking a project of ours. Can somebody make a PR to fix this? Maybe @alpeshv as you've already seemed to fix this? |
@alexjeen I don't have permission to make a PR on this repo unfortunately. Anyway there are so many PRs pending. There are also issues with id and value fields. You will be better off copying the code and make changes locally. They have done nice work upfront but allowed bugs being merged recently. |
We've switched to a jQuery implementation so it's not needed anymore. |
Hello
In "select multiple", when you search an items (input text), I've an error :
(Chrome & FF + Angular Final 2.0.0)
Same issue with your demo.
The error is into the HighlightPipe :
var tagList = value.match(tagRE);
due to value is not a string but instance of SafeHtmlImplI don't known if it's the best soltuion, but you could fix it with :
thkx
The text was updated successfully, but these errors were encountered: