From b988f0504c3dbac6ca313da80a0417e44b48a6f6 Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 5 Dec 2016 16:56:44 -0300 Subject: [PATCH] fix autofocus --- src/js/services/popupService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/services/popupService.js b/src/js/services/popupService.js index a1fc1ffe0..c9a7110c8 100644 --- a/src/js/services/popupService.js +++ b/src/js/services/popupService.js @@ -34,7 +34,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni $ionicPopup.prompt({ title: title, subTitle: message, - inputType: opts.inputType, + template: '', inputPlaceholder: opts.inputPlaceholder, defaultText: opts.defaultText }).then(function(res) { @@ -118,7 +118,7 @@ angular.module('copayApp.services').service('popupService', function($log, $ioni this.showPrompt = function(title, message, opts, cb) { $log.warn(title ? (title + ': ' + message) : message); - opts = opts || {}; + opts = opts ||  {}; if (isCordova && !opts.forceHTMLPrompt) _cordovaPrompt(title, message, opts, cb);