Merge pull request #180 from Bitcoin-com/wallet/task/383

Bug - 383 - Disappearing keyboard due to the keyboard
This commit is contained in:
Brendon Duncan 2018-06-20 14:06:14 +12:00 committed by GitHub
commit ea07c70f72
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1383,6 +1383,11 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
}
$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams) {
if (document.body.classList.contains('keyboard-open')) {
document.body.classList.remove('keyboard-open');
$log.debug('Prevented keyboard open bug..');
}
$log.debug('Route change from:', fromState.name || '-', ' to:', toState.name);
$log.debug(' toParams:' + JSON.stringify(toParams || {}));
$log.debug(' fromParams:' + JSON.stringify(fromParams || {}));