Comments (14)
The problem is the keyboard plugin hides the form accessory view by default and that is needed in select fields.
You can prevent that behaviour by adding this preference in the config.xml
<preference name="HideKeyboardFormAccessoryBar" value="false" />
or on runtime with Keyboard.hideFormAccessoryBar(false);
from cordova-plugin-ionic-webview.
select is an html element, so if it doesn't work as you expect, report it to Apple, the plugin doesn't do anything other than hiding the done button if you have that preference set to true, but doesn't affect the select behaviour in any way.
from cordova-plugin-ionic-webview.
+1
from cordova-plugin-ionic-webview.
Also facing this. See attached video for visual hints. Even on an unstyled select the issue exists. In UIWebView, the issue doesn't exist.
ScreenRecording_11-14-2017 23-23.zip
from cordova-plugin-ionic-webview.
Any progress on that :-(??
from cordova-plugin-ionic-webview.
Our only option was to revert back to UIWebView, which obviously introduced it's own problems.
from cordova-plugin-ionic-webview.
+1
from cordova-plugin-ionic-webview.
@d-fnc So did we. Now we have issues with landscape mode and select fields on ipad. Very sad situation :-( For ionic this doesn't seem to have any priority.
from cordova-plugin-ionic-webview.
I have discovered something more: if you activate the accesory bar to show the "Done" button, clicking on it will perform the change in the select tag. If we could find a way to activate this "Done" button only in case of a dropdown list, we could have at least one temporal functional solution (clicking outside the dropdown list won't work anyway).
from cordova-plugin-ionic-webview.
Hey everyone!
If you're still struggling with this issue, we found a workaround for the problem by absolute chance. We had some irreconcilable issues with UIWebView recently and had to switch to WK to give it another go. Strangely enough we didn't experience this bug anymore, and thought that it was fixed. But actually there was a UIWebView bug, that we had a workaround for that solves this issue as well, in WKWebView.
Try adding preventDefault on your select's mouseup and touchend event like so:
$('.w-select').on('mouseup', function(e){
e.preventDefault();
});
$('.w-select').on('touchend', function(e){
e.preventDefault();
});
You will still need the AccessoryBar to be able to save changes to the selection, but at least it won't mess up the values anymore when you change between the input fields.
Cheers!
from cordova-plugin-ionic-webview.
@d-fnc Did the fix work well in the past months? I want to give wkwebview another try as well since https://github.com/ionic-team/ionic-plugin-keyboard now is deprecated and doesn't work with cordova-android >= 7.0.0 anymore, but the successor plugin https://github.com/ionic-team/cordova-plugin-ionic-keyboard needs wkwebview.
Not a very good idea to totally count on wkwebview when there are bugs that significant in there, ionic team!!
from cordova-plugin-ionic-webview.
@Defcon0 It holds up well so far, we didn't experience any issues with the inputs field since then. I would say give it a go and see how well it works out for you.
from cordova-plugin-ionic-webview.
@d-fnc Sounds great, thanks for the reply. I'll give it a try in some days.
from cordova-plugin-ionic-webview.
@jcesarmobile -- as far as I can tell this issue is not resolved. Even if you add the preference so the "Done" button appears, if the user clicks outside of the select popup, their selection is ignored. Is that the intended behavior? It seems counter-intuitive to me, and is not how select fields work in Safari/Chrome on iOS.
from cordova-plugin-ionic-webview.
Related Issues (20)
- The input control cannot hide the keyboard
- navigation to non-allowed URL
- [iOS 15.5] Incorrect events on canvas long press HOT 1
- New Window Not open if using Stripe Hosted Payment Page (see video)
- ERROR:aw_browser_terminator.cc(123) HOT 1
- Very slow to load large local video HOT 4
- uploading to the app store / Asset validation failed HOT 1
- Autofocus not centering field in view
- Problem when set fullscreen mode for some video inside WebView content
- Html canβt load local video on iOS
- Impossible to publish to appstore. iOS 16.1 SDK target
- ios 16.1 SDK support
- Cannot debug the webview with safari inspect tool HOT 1
- On iPhone devices screen is zoomed in and fails to resize back after user enters input
- Trying to use import modules using the plugin does not work - any way to get around this?
- Plugins won't load on iOS with ionic urls
- How to used in pdf-generator plugin
- apps using IonicWebViewEngine fails to load on pixel phones running android 14
- Plaid OAuth Integration Feature
- [iOS]add option textInteractionEnabled support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-ionic-webview.