Open Ifeo-A opened 7 years ago
On desktop it works but a cordova app ran in desktop broswer does not work even for simple text inputs
Possible duplicate of #4380
Yes, it certainly looks like a duplicate, but #4380 is closed for some reason, but I can confirm that this is still an issue on both iOS and Android as well as in the Chrome developer view (as a touch device). Having form elements, including Collapsibles within a tab component, doesn’t work if you want to interact with them with touch events. Tapping on elements, swiping etc. just doesn’t work. The events are ignored.
Expected Behavior
When enabling swipe functionality with the tab components a user using a mobile device should be able to interact with form elements that are within the tab content area.
Current Behavior
When the
swipeable
option is set totrue
on the tab component the user is able to swipe between the tabs and interact with form elements as normal, but on mobile devices the user is not able to interact with form elements but is able to swipe between the tabs.Possible Solution
I think the user is not able interact with the form elements in a swipeable tab content area because the page is not able to decide fast enough if the user wants to swipe or just wants to tap on something and so when the user places a finger on the screen to tap the screen sensors pick-up minor horizontal movements and interprets that the user wants to swipe.
Steps to Reproduce (for bugs)
<form>
and insert a materialize css<select>
component in it with some options and also insert a file input field.$('ul.tabs').tabs({swipeable:true});
$('select').material_select();
Context
I am trying to get the same functionality on mobile for form elements within a tab component to work as it does on desktop.
Your Environment