mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
android textarea .cloned-text-input fix
This commit is contained in:
@@ -120,6 +120,7 @@ ionic.tap = {
|
||||
clonedInput.value = focusInput.value;
|
||||
clonedInput.className = 'cloned-text-input';
|
||||
focusInput.parentElement.insertBefore(clonedInput, focusInput);
|
||||
focusInput.style.top = focusInput.offsetTop;
|
||||
focusInput.classList.add('previous-input-focus');
|
||||
}
|
||||
}
|
||||
@@ -142,6 +143,7 @@ ionic.tap = {
|
||||
|
||||
for(x=0; x<previousInputFocus.length; x++) {
|
||||
previousInputFocus[x].classList.remove('previous-input-focus');
|
||||
previousInputFocus[x].style.top = '';
|
||||
previousInputFocus[x].focus();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -260,6 +260,15 @@ input[type="file"] {
|
||||
line-height: $input-height-base;
|
||||
}
|
||||
|
||||
// Text input classes to hide text caret during scroll
|
||||
.previous-input-focus,
|
||||
.cloned-text-input + input,
|
||||
.cloned-text-input + textarea {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
|
||||
// Placeholder
|
||||
// -------------------------------
|
||||
|
||||
@@ -137,14 +137,6 @@ body.grade-c {
|
||||
}
|
||||
}
|
||||
|
||||
.previous-input-focus,
|
||||
.cloned-text-input + input,
|
||||
.cloned-text-input + textarea {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
@keyframes refresh-spin {
|
||||
0% { transform: translate3d(0,0,0) rotate(0); }
|
||||
100% { transform: translate3d(0,0,0) rotate(-180deg); }
|
||||
|
||||
Reference in New Issue
Block a user