From 99f2532ee174da79e2b6a462cfa124673edc1170 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Mon, 14 Sep 2020 11:44:37 -0400 Subject: [PATCH] fix(input): only focus the first input / textarea when clicking on the parent item (#22049) fixes #22037 resolves #22032 --- core/src/components.d.ts | 14 ++++++- core/src/components/item/item.tsx | 38 ++++++++++++------- .../components/item/test/inputs/index.html | 23 ++++++++++- core/src/components/textarea/readme.md | 4 +- core/src/components/textarea/textarea.tsx | 34 +++++++++++++++-- 5 files changed, 91 insertions(+), 22 deletions(-) diff --git a/core/src/components.d.ts b/core/src/components.d.ts index b3878a8093..6c378ebb70 100644 --- a/core/src/components.d.ts +++ b/core/src/components.d.ts @@ -2439,6 +2439,10 @@ export namespace Components { * A hint to the browser for which enter key to display. Possible values: `"enter"`, `"done"`, `"go"`, `"next"`, `"previous"`, `"search"`, and `"send"`. */ "enterkeyhint"?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'; + /** + * This is required for a WebKit bug which requires us to blur and focus an input to properly focus the input in an item with delegatesFocus. It will no longer be needed with iOS 14. + */ + "fireFocusEvents": boolean; /** * Returns the native `