You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I'm using select2 for building responsive websites.
Unfortunately, when using select2 on mobile devices, opening the curtain also opens the keyboard of the device, making everything difficult to manage!
When using select2 on mobile devices, when the select field is opened, the search field should not have automatic focus and should not open any keyboard by default by setting the attribute inputmode='none'.
Subsequently, if the user decides to filter the results by writing in the search field, the attribute should change by opening the keyboard set by the inputmode attribute assigned to the original select (ex: text, decimal, tel, etc)
Do you think it's possible?
The text was updated successfully, but these errors were encountered:
At most it would be sufficient to inherit the inputmode attribute from the original select. In this way it would be possible to "block" the use of the search field and the opening of the keyboard if the attribute was set to "none".
In desktop view the inputmode attribute has no relevance, so it would only affect mobile usage.
As with many things, I'd be willing to review a pull request which copies the inputmode attribute from the original <select> into the <input /> used for search.
Hi!
I'm using select2 for building responsive websites.
Unfortunately, when using select2 on mobile devices, opening the curtain also opens the keyboard of the device, making everything difficult to manage!
When using select2 on mobile devices, when the select field is opened, the search field should not have automatic focus and should not open any keyboard by default by setting the attribute inputmode='none'.
Subsequently, if the user decides to filter the results by writing in the search field, the attribute should change by opening the keyboard set by the inputmode attribute assigned to the original select (ex: text, decimal, tel, etc)
Do you think it's possible?
The text was updated successfully, but these errors were encountered: