ui5-webcomponents
ui5-webcomponents copied to clipboard
[Dialog]: the initialFocus property of Dialog not working in mobile view
Bug Description
We can use Dialog "initialFocus" property to set focus on the element inside the dialog once the dialog is launched. This property is working fine in the web view but when the dialog is used in the context of hybrid mobile app, the focus is not getting set.
Affected Component
Dialog
Expected Behaviour
The focus should be set to the element specified in "initialFocus" property.
Isolated Example
No response
Steps to Reproduce
In the attached image, dialog component has been used in a web page which is embedded in the Hybrid mobile app. When user launches this screen, ideally focus should be set on the "Search for attribute" input field but its not focusable.
Because of this issue, this particular UI is no longer accessible.
Log Output, Stack Trace or Screenshots
No response
Priority
Medium
UI5 Web Components Version
1.20.0
Browser
Chrome, Safari
Operating System
No response
Additional Context
No response
Organization
SAP
Declaration
- [X] I’m not disclosing any internal or sensitive information.
Hello @saurabhmehta13 , Could you please share more information about your hybrid app and how we can test and reproduce the issue? If there is a sensitive information, you can share details internally.
Regards, Iliana
Hello @ui5-webcomponents-topic-rd,
The issue is that the mobile device keyboard does not get open on initial input focus (only in the application).
Could you please discuss this issue and provide more details about the desired behaviour of the initially focused input in a ui5-dialog
in UI5 Web Components. Currently, in UI5 classic, the keyboard opening is prevented on initial focus because of a viewport size issues with some of the mobile operating systems. That is not the case with the behaviour of the Dialog component at the moment.
If it should be aligned, then this issue is contradicting with the desired functionality.
Kind regards, Nikolay
Hello @saurabhmehta13,
I have requested additional information for the issue internally as there is sensitive information. Setting the issue to author action until the information is received.
Best Regards, Gergana
Hi @GerganaKremenska Required details have been shared internally.
Thanks, Saurabh