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

ie 9 doesn't recognize 'delete' key as input #846

Closed
bmcmahen opened this issue Mar 18, 2013 · 5 comments
Closed

ie 9 doesn't recognize 'delete' key as input #846

bmcmahen opened this issue Mar 18, 2013 · 5 comments

Comments

@bmcmahen
Copy link

This is a bit of an obscure one... but...

I've setup an event listener for input .input-field. It's triggered when a user inputs text into the field after every key, except in IE 9 it doesn't trigger when the delete key is pressed. It works fine in Safari, Chrome, & Firefox. Here's my code:

  Template.filter.events({
     'input .query': function(e, t){
       console.log('hello world?!');
       var query = t.find('.query').value;
       Session.set('query', query);
     }
  }); 
@bmcmahen
Copy link
Author

FWIW, an easy solution to this is simply to use keyup instead of input.

@cmather
Copy link
Contributor

cmather commented Mar 20, 2013

Hi @bmcmahen, On my quick research it appears this might be a bug in IE9. I'll have to spend more time to see if it's a known MS issue. Do you happen to know? Thanks for the proposed solution. Now we have a good suggestion for people if this comes up. Let me know if you know if it's a known issue, and any links would be great.

@bmcmahen
Copy link
Author

I"ll look into it a bit further and get back to you. I wouldn't be surprised if its just an ie bug, but I wonder if this might be something that jquery, for instance, smooths over, and could therefore be fixed with meteor.

@bmcmahen
Copy link
Author

Further research shows that, indeed, this is definitely a known bug in IE 9. The alternative is to use a combination of keyup and change events... Sigh... This is unfortunate, but it's not a Meteor specific issue so I'm going to close this ticket for now.

@cmather
Copy link
Contributor

cmather commented Mar 20, 2013

Okay thanks for closing the loop Ben.

Sent from my iPhone

On Mar 20, 2013, at 1:41 PM, Ben McMahen notifications@github.com wrote:

Further research shows that, indeed, this is definitely a known bug in IE 9. The alternative is to use a combination of keyup and change events... Sigh... This is unfortunate, but it's not a Meteor specific issue so I'm going to close this ticket for now.


Reply to this email directly or view it on GitHub.

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