Skip to content

Instantly share code, notes, and snippets.

@kybishop
Last active September 21, 2018 16:25
Show Gist options
  • Save kybishop/2ea65490cb17b85366d6 to your computer and use it in GitHub Desktop.
Save kybishop/2ea65490cb17b85366d6 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=myValue}}
{{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