diff --git a/js/utils/keyboard.js b/js/utils/keyboard.js index 77bc79ee3b5..fac100d30d8 100644 --- a/js/utils/keyboard.js +++ b/js/utils/keyboard.js @@ -161,7 +161,9 @@ function keyboardOnKeyDown(e) { } function keyboardPreventDefault(e) { - e.preventDefault(); + if( e.target.tagName !== 'TEXTAREA' ) { + e.preventDefault(); + } } function keyboardOrientationChange() { diff --git a/js/views/scrollView.js b/js/views/scrollView.js index 6c61d3a1ec2..211345713c3 100644 --- a/js/views/scrollView.js +++ b/js/views/scrollView.js @@ -696,7 +696,8 @@ ionic.views.Scroll = ionic.views.View.inherit({ }; self.touchMove = function(e) { - if(e.defaultPrevented) { + if(e.defaultPrevented || + (e.target.tagName === 'TEXTAREA' && e.target.parentElement.querySelector(':focus')) ) { return; } diff --git a/scss/_form.scss b/scss/_form.scss index 427846bed3c..159af6e70bf 100644 --- a/scss/_form.scss +++ b/scss/_form.scss @@ -146,12 +146,12 @@ textarea { .item-stacked-label textarea { @include border-radius(2px); - overflow: hidden; padding: 4px 8px 3px; border: none; background-color: $input-bg; } .item-stacked-label input { + overflow: hidden; height: $line-height-computed + $font-size-base + 12px; } diff --git a/test/css/input-textarea.html b/test/css/input-textarea.html index 1c36d0734fe..2624c9e609f 100644 --- a/test/css/input-textarea.html +++ b/test/css/input-textarea.html @@ -94,7 +94,7 @@