openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

ComboBox Issue on tablet (real/simulation) - setInitialFocus failed

Open pa775 opened this issue 7 years ago • 9 comments

OpenUI5 version: 1.66.0

Browser/version (+device/version): Chrome: 74.0.3729.157

Any other tested browsers/devices(OK/FAIL):

URL (minimal example if possible): Example on the offical openui5 page / example / combobox https://openui5.hana.ondemand.com/1.66.0/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox

Steps to reproduce the problem: When the sample are started on a normal desktop everything is ok. But when you are on a tablet, or switch to the table simulation (via chrome dev tools) an error will occur:

ComboBoxBase-dbg.js:655 Uncaught TypeError: Cannot read property 'setInitialFocus' of null at f.o._handlePopupOpenAndItemsLoad (ComboBoxBase-dbg.js:655) at f.b.fireEvent (EventProvider-dbg.js:228) at f.b.fireEvent (Element-dbg.js:557) at f.firePress (ManagedObjectMetadata-dbg.js:782) at f. [as ontap] (Icon-dbg.js:291) at f.b._handleEvent (Element-dbg.js:259) at constructor.U._handleEvent (UIArea-dbg.js:921) at HTMLBodyElement.dispatch (jquery-dbg.js:4742) at g (jquery-mobile-custom-dbg.js:1881) at HTMLBodyElement.r (jquery-mobile-custom-dbg.js:2000)

No entry can be choosen. When you switch to a phone (real/simulation) everything will work as expected. It seems that this will only be happend on a tablet.

image ComboBox Demo Page - Chrome Dev Tools Tablet simulation

image console log entry

image ComboBox Demo Page - Chrome Dev Tools NO simulation - Normal Desktop Mode

On openUI5 version 1.65.x this issue will work on every device without exception!

pa775 avatar May 24 '19 06:05 pa775

Hi, With my Chrome Version 74.0.3729.157 (Build officiel) (64 bits) it works like a charm.

image

Regards,

jberthe avatar May 24 '19 11:05 jberthe

On iPhone it works, that's right. But on tablet emulation it doesn't. And you tried with openUI5 version 1.65.0. The tested version was 1.66.0.

pa775 avatar May 24 '19 12:05 pa775

I can confirm this error. Tested with Chrome 72.0.3626.101 and Safari on an Ipad

kip-dynamite avatar Jun 12 '19 12:06 kip-dynamite

I am facing similar issue for combo box in tab view. Please provide a fix for this.

shabnam701 avatar Jun 17 '19 08:06 shabnam701

My colleagues will follow up after reviewing #1970273428

BR

stephania87 avatar Jun 21 '19 14:06 stephania87

Hello @pa775 ,

Thanks for sharing your findings.

The issue is already reported and fixed. It will be available with the next release of openUI5.

Kind Regards, Niya

niyap avatar Jun 27 '19 05:06 niyap

Currently I tested this with the version 1.67.1 of the ui5 framework. The Problem still exists. In which version will this issue be fixed ?

pa775 avatar Jul 10 '19 15:07 pa775

@pa775 Probably in 1.68 as the issue is not reproducible anymore in https://openui5nightly.hana.ondemand.com/#/entity/sap.m.ComboBox/sample/sap.m.sample.ComboBox.

boghyon avatar Jul 10 '19 17:07 boghyon

@boghyon

Sorry, you are right when you are testing on a desktop pc with chrome and starting the emulation for any device. But when you are physically on a device (in my case company iPad with version 10.2 right now) it doesn't. On my smartphone the values from the combobox are selectable, the same on my tablet doesn't work. So in fact, the fixed issue is working in a chrome emulation (tablet/phone) but doesn't work on a tablet device itself.

Maybe only on my devices, but I tried this kind of issue on 3 different devices and got the some effect in Chrome and Safari. Can you please check this again and give me a clue what I'm doing wrong?

pa775 avatar Jul 11 '19 05:07 pa775