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

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

2 participants

@bmcmahen

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

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

@cmather

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

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

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.

@bmcmahen bmcmahen closed this Mar 20, 2013
@cmather
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment