fix(select): Open select options on Android 2.3

Closes #1298
This commit is contained in:
Adam Bradley
2014-05-08 09:04:03 -05:00
parent 9e06a663f2
commit d839f4da64

View File

@@ -679,7 +679,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
return;
}
if( ionic.tap.containsOrIsTextInput(e.target) ) {
if( ionic.tap.containsOrIsTextInput(e.target) || e.target.tagName === 'SELECT' ) {
// do not start if the target is a text input
// if there is a touchmove on this input, then we can start the scroll
self.__hasStarted = false;
@@ -698,7 +698,7 @@ ionic.views.Scroll = ionic.views.View.inherit({
return;
}
if( !self.__hasStarted && ionic.tap.containsOrIsTextInput(e.target) ) {
if( !self.__hasStarted && ( ionic.tap.containsOrIsTextInput(e.target) || e.target.tagName === 'SELECT' ) ) {
// the target is a text input and scroll has started
// since the text input doesn't start on touchStart, do it here
self.__hasStarted = true;