File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
core/src/utils/input-shims/hacks Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- import { pointerCoord } from '../../helpers' ;
1
+ import { pointerCoord , raf } from '../../helpers' ;
2
2
3
3
import { isFocused , relocateInput } from './common' ;
4
4
import { getScrollData } from './scroll-data' ;
@@ -26,7 +26,6 @@ export const enableScrollAssist = (
26
26
// focus this input if the pointer hasn't moved XX pixels
27
27
// and the input doesn't already have focus
28
28
if ( ! hasPointerMoved ( 6 , coord , endCoord ) && ! isFocused ( inputEl ) ) {
29
- ev . preventDefault ( ) ;
30
29
ev . stopPropagation ( ) ;
31
30
32
31
// begin the input focus process
@@ -65,6 +64,13 @@ const jsSetFocus = async (
65
64
relocateInput ( componentEl , inputEl , true , scrollData . inputSafeY ) ;
66
65
inputEl . focus ( ) ;
67
66
67
+ /**
68
+ * Relocating/Focusing input causes the
69
+ * click event to be cancelled, so
70
+ * manually fire one here.
71
+ */
72
+ raf ( ( ) => componentEl . click ( ) ) ;
73
+
68
74
/* tslint:disable-next-line */
69
75
if ( typeof window !== 'undefined' ) {
70
76
let scrollContentTimeout : any ;
You can’t perform that action at this time.
0 commit comments