Skip to content

Instantly share code, notes, and snippets.

@jasonmevans
Last active May 23, 2018 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonmevans/f845611292bbd7a486c7090dd2e29dfa to your computer and use it in GitHub Desktop.
Save jasonmevans/f845611292bbd7a486c7090dd2e29dfa to your computer and use it in GitHub Desktop.
IE 11 Input Test
import Ember from 'ember';
export default Ember.Component.extend({
testValue: '',
actions: {
handleKey(v) {
this.set('testValue', v);
},
keyUp(e) {
this.set('testValue', e.target.value);
}
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>IE 11 Input Test</h1>
<p>In IE 11 this input control may render, but event bindings will not be setup.</p>
<h2>Input helper</h2>
{{input value=testValue}}
<div class="test-value">{{testValue}}</div>
<h2>Input element</h2>
<input type="text" value={{testValue}} onKeyup={{action "keyUp"}} />
<div class="test-value">{{testValue}}</div>
<h2>This does work, though</h2>
<p>Logs to console...</p>
<input type="text" onKeyup="console.log(event.target.value);" />
{
"version": "0.13.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.16.2",
"ember-template-compiler": "2.16.2",
"ember-testing": "2.16.2"
},
"addons": {
"ember-data": "2.16.3"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment