Skip to content

Instantly share code, notes, and snippets.

@jcope2013
Created June 21, 2018 00:02
Show Gist options
  • Save jcope2013/cf74264ca480de8d3c9fea79c44d1227 to your computer and use it in GitHub Desktop.
Save jcope2013/cf74264ca480de8d3c9fea79c44d1227 to your computer and use it in GitHub Desktop.
Inputmask backspace issue
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
updateSsn(unmaskedValue, maskedValue){
this.set('ssn', maskedValue);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
<br>
{{outlet}}
<br>
{{one-way-input-mask value=ssn mask='999-99-9999' type="tel" update=(action 'updateSsn')}}
{{ssn}}
<br>
{
"version": "0.14.1",
"EmberENV": {
"FEATURES": {}
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "1.13.13",
"ember-template-compiler": "1.13.13",
"ember-testing": "1.13.13"
},
"addons": {
"ember-inputmask": "0.6.8"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment