ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

[Dialog]: the initialFocus property of Dialog not working in mobile view

Open saurabhmehta13 opened this issue 11 months ago • 4 comments

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.

WSM-23639

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.

saurabhmehta13 avatar Mar 06 '24 09:03 saurabhmehta13

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

IlianaB avatar Mar 06 '24 13:03 IlianaB

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

ndeshev avatar Mar 12 '24 09:03 ndeshev

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

GerganaKremenska avatar Mar 14 '24 06:03 GerganaKremenska

Hi @GerganaKremenska Required details have been shared internally.

Thanks, Saurabh

saurabhmehta13 avatar Mar 14 '24 12:03 saurabhmehta13