@@ -9,7 +9,8 @@ export const enableScrollAssist = (
99 inputEl : HTMLInputElement | HTMLTextAreaElement ,
1010 contentEl : HTMLElement | null ,
1111 footerEl : HTMLIonFooterElement | null ,
12- keyboardHeight : number
12+ keyboardHeight : number ,
13+ disableClonedInput = false
1314) => {
1415 let coord : any ;
1516 const touchStart = ( ev : Event ) => {
@@ -28,7 +29,7 @@ export const enableScrollAssist = (
2829 // and the input doesn't already have focus
2930 if ( ! hasPointerMoved ( 6 , coord , endCoord ) && ! isFocused ( inputEl ) ) {
3031 // begin the input focus process
31- jsSetFocus ( componentEl , inputEl , contentEl , footerEl , keyboardHeight ) ;
32+ jsSetFocus ( componentEl , inputEl , contentEl , footerEl , keyboardHeight , disableClonedInput ) ;
3233 }
3334 } ;
3435 componentEl . addEventListener ( 'touchstart' , touchStart , { capture : true , passive : true } ) ;
@@ -45,7 +46,8 @@ const jsSetFocus = async (
4546 inputEl : HTMLInputElement | HTMLTextAreaElement ,
4647 contentEl : HTMLElement | null ,
4748 footerEl : HTMLIonFooterElement | null ,
48- keyboardHeight : number
49+ keyboardHeight : number ,
50+ disableClonedInput = false
4951) => {
5052 if ( ! contentEl && ! footerEl ) {
5153 return ;
@@ -62,7 +64,7 @@ const jsSetFocus = async (
6264 // temporarily move the focus to the focus holder so the browser
6365 // doesn't freak out while it's trying to get the input in place
6466 // at this point the native text input still does not have focus
65- relocateInput ( componentEl , inputEl , true , scrollData . inputSafeY ) ;
67+ relocateInput ( componentEl , inputEl , true , scrollData . inputSafeY , disableClonedInput ) ;
6668 inputEl . focus ( ) ;
6769
6870 /**
0 commit comments