Skip to content
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

Search with special characters not working as expected in Rx-Tag #594

Closed
MilitPanchasara opened this issue Sep 13, 2022 · 2 comments
Closed

Comments

@MilitPanchasara
Copy link

Description

When string with special characters like + or * is entered in the Rx-Tag element, it is not able fetch expected data in dropdown.

For example,
In below attached screenshot, user is trying to search "a+ ", but expected result is not shown in dropdown.
image

Expected Behavior

It should fetch all the records with exact match of the input string.

In current example, it should fetch "A+ grade" record only.

To Reproduce

Here is the link to demo project to reproduce the same issue:
https://stackblitz.com/edit/rxweb-tag-item-ordering-bentbf?file=src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts

Enter any word with special character and Space after any special character, it will show wrong or no records in dropdown.

Possible cause of issue:

Filter functionality in rx-tag is not escaping special characters while applying Regex for filtering, because of which wrong records are getting fetched.

Package Version

@rxweb/[email protected]

@thakorhitesh
Copy link

@MilitPanchasara, try with the latest version.

@MilitPanchasara
Copy link
Author

Thanks @hiteshthakor93 for the fix. It is working with latest version (@rxweb/[email protected]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants