diff --git a/js/utils/tap.js b/js/utils/tap.js index c868f1e4d6b..493d45f81f4 100644 --- a/js/utils/tap.js +++ b/js/utils/tap.js @@ -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; diff --git a/scss/_form.scss b/scss/_form.scss index 6b2361316d0..d3ebb938289 100644 --- a/scss/_form.scss +++ b/scss/_form.scss @@ -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; }