GwtMaterialDesign / gwt-material-addins

Custom Components for gwt-material.
https://gwtmaterialdesign.github.io/gmd-addins-demo/
Apache License 2.0
35 stars 46 forks source link

TimePicker popup closes immediately after open on mobile chrome (v77) #391

Open squinn opened 4 years ago

squinn commented 4 years ago

I'm seeing a problem with both the 2.2 and 2.3-snapshot builds where the time picker will immediately close after open when either using the mobile emulator in Chrome on Windows or in Chrome on actual Android mobile phone. So, it behaves similar to the the issue noted here (https://github.com/GwtMaterialDesign/gwt-material-addins/issues/383), but seems to only affect the MaterialTimePicker (the MaterialDatePicker works fine) - and only happens on mobile.

Steps to replicate:

Enable a mobile device emulator in the dev tools in Chrome, and then attempt to open up a MaterialTimePicker.

rwursthorn commented 4 years ago

I have the same problem with Chrome 78.0.3904.90 on Android using gwt-material-addins-2.2. Chrome 78.0.3904.84 on iOS and all Browsers I tested on desktop work great.

washowasho commented 4 years ago

Check the 2.3-SNAPSHOT for a working version as well.

kevzlou7979 commented 4 years ago

Cool

rwursthorn commented 4 years ago

With Chrome 80.0.3987.119 on Android 7.0 on a Samsung Galaxy S6 I have this problem with the timepicker both on https://gwtmaterialdesign.github.io/gwt-material-demo/ and on https://gwtmaterialdesign.github.io/gmd-core-demo/

I am pretty sure that with older versions of Chrome (I can't tell which versions) it worked on https://gwtmaterialdesign.github.io/gwt-material-demo/

washowasho commented 4 years ago

For those not able to use the 2.3 snapshot.... try opening the time picker from code (.open() ). It stays open if you do it that way.

rwursthorn commented 4 years ago

For those not able to use the 2.3 snapshot.... try opening the time picker from code (.open() ). It stays open if you do it that way.

Thank you. It worked for me using time.addTouchStartHandler(event -> time.open());