mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scrollView): cloned input for keyboard-scroll now matches original
Closes #1721
This commit is contained in:
@@ -195,7 +195,9 @@ ionic.tap = {
|
||||
clonedInput.placeholder = focusInput.placeholder;
|
||||
clonedInput.type = focusInput.type;
|
||||
clonedInput.value = focusInput.value;
|
||||
clonedInput.className = 'cloned-text-input';
|
||||
clonedInput.style = focusInput.style;
|
||||
clonedInput.className = focusInput.className;
|
||||
clonedInput.classList.add('cloned-text-input');
|
||||
clonedInput.readOnly = true;
|
||||
focusInput.parentElement.insertBefore(clonedInput, focusInput);
|
||||
focusInput.style.top = focusInput.offsetTop;
|
||||
|
||||
@@ -270,7 +270,7 @@ input[type="file"] {
|
||||
.previous-input-focus,
|
||||
.cloned-text-input + input,
|
||||
.cloned-text-input + textarea {
|
||||
position: absolute;
|
||||
position: absolute !important;
|
||||
left: -9999px;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user