Skip to content

Commit 88e41e1

Browse files
committed
fix(scrollView): fix clonedInputs not being removed for large textareas
on keyboardshow Closes #1420.
1 parent 4a57bd0 commit 88e41e1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: js/views/scrollView.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,12 @@ ionic.views.Scroll = ionic.views.View.inherit({
671671
var elementTopOffsetToScrollBottom = e.detail.elementTop - scrollBottomOffsetToTop;
672672

673673
var scrollTop = elementTopOffsetToScrollBottom + scrollMidpointOffset;
674-
ionic.tap.cloneFocusedInput(container, self);
675-
self.scrollBy(0, scrollTop, true);
676-
self.onScroll();
674+
675+
if (scrollTop > 0){
676+
ionic.tap.cloneFocusedInput(container, self);
677+
self.scrollBy(0, scrollTop, true);
678+
self.onScroll();
679+
}
677680
}, delay);
678681
}
679682

0 commit comments

Comments
 (0)