fix(input): fix floating/stacked label relocate

This commit is contained in:
Adam Bradley
2016-01-26 16:24:31 -06:00
parent f79a121bde
commit ad7885f6a4
5 changed files with 36 additions and 15 deletions

View File

@ -40,7 +40,7 @@ export class InputBase {
protected _nav: NavController,
ngControl: NgControl
) {
this._useAssist = true;// config.get('scrollAssist');
this._useAssist = config.get('scrollAssist');
this._keyboardHeight = config.get('keyboardHeight');
if (ngControl) {
@ -67,6 +67,7 @@ export class InputBase {
self._scrollMove = function(ev: UIEvent) {
// scroll move event listener this instance can reuse
console.log('scrollmove', ev)
if (!(self._nav && self._nav.isTransitioning())) {
self.deregScrollMove();
@ -130,7 +131,7 @@ export class InputBase {
if (val) {
val = val.toLowerCase();
if (/password|email|number|search|tel|url|date|datetime|datetime-local|month/.test(val)) {
if (/password|email|number|search|tel|url|date|datetime|datetime-local|month|time|week/.test(val)) {
this._type = val;
}
}