This repository was archived by the owner on May 1, 2024. It is now read-only.
Focus
is not consistent on all platforms
#5616
Labels
e/7 🕖
7
help wanted
We welcome community contributions to any issue, but these might be a good place to start!
i/high
Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often
inactive
Issue is older than 6 months and needs to be retested
m/high impact ⬛
p/Android
p/iOS 🍎
partner/cat 😻
t/bug 🐛
up-for-grabs
We welcome community contributions to any issue, but these might be a good place to start!
Uh oh!
There was an error while loading. Please reload this page.
Description
This is a larger issue that requires some discussion. The basic summary is this:
All Xamarin.Forms controls are
VisualElement
s, which contains a basic set of properties and events that should work on anyVisualElement
.However, the
Focus
method is not functional on many mobile controls (e.g.,Button
,WebView
) because there is no native option to put focus on such native objects.Problems:
For many reasons, a11y included, customers would like to put the focus on a
Button
(or other element) programmatically, and they are currently unable to do so on mobile platforms. Can we do this somehow?If the answer is No, then should we obsolete the
Focus
method fromVisualElement
and move it to aFocusable
interface that we can then apply only to elements that are able to be focused? What do we do when that is platform specific?Moreover, the
Focus
method is supposed to return a bool value that indicates whether the platform was able to successfully focus the element; in the case ofButton
, this is erroneously returningtrue
.The text was updated successfully, but these errors were encountered: