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

Backspacing in search text box doesn't work in IE #410

Closed
OhioGuy67 opened this issue Jun 3, 2015 · 4 comments
Closed

Backspacing in search text box doesn't work in IE #410

OhioGuy67 opened this issue Jun 3, 2015 · 4 comments

Comments

@OhioGuy67
Copy link

In my application, I have a global search box associated with a table. As I start to type characters, the table is being filtered correctly. However, if I backspace over a character, the table results are not changing. For example, if I have 10 rows in my table, type "A" into the search box that reduces the rows to 7, type "B" that reduces the rows to 5, when I remove "B" (so the search string is only "A"), the number of rows doesn't change (i.e., it is still 5). This does not occur in FF and is only occurring in IE (IE9 to be specific). The only way to get around this is to refresh the page but that is not desirable. Do you have any suggestions?

@lorenzofox3
Copy link
Owner

Maybe you'll have to enhance the stSearch directive by manually handling the key related to backspace and call the table controller search function with the proper value. Or maybe you should listen to another event than "input" (change maybe)

@lorenzofox3
Copy link
Owner

#254 might be useful

@OhioGuy67
Copy link
Author

It turns out that simply adding "keydown" to the existing "input" listener took care of the problem. Yes there may be unnecessary searches occurring but at least for me, it solved this problem (and performance is not a huge concern in my application).

Thanks for the help.

@lorenzofox3
Copy link
Owner

👍

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