ember-mobile-inputs
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -33,10 +33,15 @@ import Ember from "ember"; | ||
}else{ | ||
let format = this._getDateFormat(); | ||
$input.inputmask(format.toLowerCase(), { | ||
"placeholder": format.toUpperCase(), | ||
"clearMaskOnLostFocus": false | ||
}); | ||
this._initDateMask(); | ||
} | ||
}), | ||
_initDateMask(){ | ||
let format = this._getDateFormat(); | ||
let $input = Ember.$(this.element).find('.desktop-input'); | ||
$input.inputmask(format.toLowerCase(), { | ||
"placeholder": format.toUpperCase(), | ||
"clearMaskOnLostFocus": false | ||
}); | ||
}, | ||
setup: Ember.on('didInsertElement', function () { | ||
@@ -46,5 +51,5 @@ if (!isTouchDevice()) { | ||
let format = this._getDateFormat(); | ||
$input.inputmask(format.toLowerCase(), { | ||
"clearMaskOnLostFocus": false | ||
}); | ||
if (!this.get('disabled')) { | ||
this._initDateMask(); | ||
} | ||
@@ -51,0 +56,0 @@ let that = this; |
{ | ||
"name": "ember-mobile-inputs", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Mobile- and Desktop- friendly inputs", | ||
@@ -5,0 +5,0 @@ "directories": { |
372
18686