Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaterialTimePicker not working correctly on touch-screen devices #429

Open
andreififiita opened this issue Feb 4, 2021 · 3 comments
Open
Assignees
Milestone

Comments

@andreififiita
Copy link

When tapping the time textbox of the MaterialTimePicker, the clock selection popup appears and quickly disappears, making it impossible for the user to choose the time.

You can test on Android phone, or even in Chrome Dev Tools with device toolbar activated (for ex. Responsive mode with tough screen), directly in the demo here: https://gwtmaterialdesign.github.io/gmd-addins-demo/#timepicker

On laptops/desktops it workes fine.

Also, if you have a workaround idea or something I could try until it is patched, please share.

@kevzlou7979
Copy link
Contributor

kevzlou7979 commented Feb 4, 2021

I have some workaround, this seems to have an issue with Android Chrome Browser (Latest), we need to update the timepicker. Below is the workaround you can use.

timePicker.addTouchStartHandler(event -> {
            event.stopPropagation();
            event.preventDefault();
            timePicker.open();
        });

@kevzlou7979
Copy link
Contributor

But still will see a proper fixed for the touch-devices for latest chrome on Android.

@kevzlou7979 kevzlou7979 self-assigned this Feb 4, 2021
@kevzlou7979 kevzlou7979 added this to the 2.5.0 milestone Feb 4, 2021
@andreififiita
Copy link
Author

It works. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants