mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -104,7 +104,7 @@ function keyboardNativeShow(e) {
|
||||
}
|
||||
|
||||
function keyboardBrowserFocusIn(e) {
|
||||
if( !e.target || !ionic.tap.isTextInput(e.target) || !keyboardIsWithinScroll(e.target) ) return;
|
||||
if( !e.target || !ionic.tap.isTextInput(e.target) || ionic.tap.isDateInput(e.target) || !keyboardIsWithinScroll(e.target) ) return;
|
||||
|
||||
document.addEventListener('keydown', keyboardOnKeyDown, false);
|
||||
|
||||
|
||||
@@ -166,6 +166,11 @@ ionic.tap = {
|
||||
(ele.tagName == 'INPUT' && !(/^(radio|checkbox|range|file|submit|reset)$/i).test(ele.type)) );
|
||||
},
|
||||
|
||||
isDateInput: function(ele) {
|
||||
return !!ele &&
|
||||
(ele.tagName == 'INPUT' && (/^(date|time|datetime-local|month|week)$/i).test(ele.type));
|
||||
},
|
||||
|
||||
isLabelWithTextInput: function(ele) {
|
||||
var container = tapContainingElement(ele, false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user