Skip to content

Instantly share code, notes, and snippets.

@pixelhandler
Forked from kybishop/application.controller.js
Last active March 4, 2016 19:57
Show Gist options
  • Select an option

  • Save pixelhandler/b62e87ca0caafeecf82d to your computer and use it in GitHub Desktop.

Select an option

Save pixelhandler/b62e87ca0caafeecf82d to your computer and use it in GitHub Desktop.
bug on inputs for query params
import Ember from 'ember';
export default Ember.Controller.extend({
queryParams: ['myValue'],
myValue: 1.2
});
<h1>Cursor jumps on typing and decimals clear the value</h1>
<input type="number" step="0.01" value=1.2>
{{outlet}}
<br>
<br>
{
"version": "0.6.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.3.1",
"ember-data": "2.3.3",
"ember-template-compiler": "2.3.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment