3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-27 01:55:31 +02:00

Merge pull request from ctrlaltdavid/21306

Fix keyboard not raising for Facebook username field
This commit is contained in:
Seth Alves 2017-05-01 13:02:19 -07:00 committed by GitHub
commit 2b13d4d257

View file

@ -19,7 +19,7 @@
function shouldRaiseKeyboard() {
var nodeName = document.activeElement.nodeName;
var nodeType = document.activeElement.type;
if (nodeName === "INPUT" && (nodeType === "text" || nodeType === "number" || nodeType === "password")
if (nodeName === "INPUT" && ["email", "number", "password", "tel", "text", "url"].indexOf(nodeType) !== -1
|| document.activeElement.nodeName === "TEXTAREA") {
return true;
} else {