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

WKWebView can't handle combo box correctly #42

Open
LeandroHub opened this issue Sep 15, 2015 · 2 comments
Open

WKWebView can't handle combo box correctly #42

LeandroHub opened this issue Sep 15, 2015 · 2 comments

Comments

@LeandroHub
Copy link

Hi. I had to remove SLPagingView from my project because of this behaviour. It's hard to explain but, basically, when loading a html with a combo box (select element) within it, you can't select any option because every time you scroll the Picker View that appears at the bottom and lift your finger, the default option is selected; though if you tap an directly to an option it works but it is not the intended behaviour of a Picker View. Also the Picker View can be scrolled to the left and to the right and then it returns to the correct position but with the same bad behaviour.

To replicate this, just create a brand new project, pod install SLPagingView and use this code in the ViewController.m:

#import <WebKit/WebKit.h>
.
.
.
@interface ViewController ()

@property (strong, nonatomic) WKWebView *theWebView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    _theWebView = [[WKWebView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:_theWebView];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.example.com/some_html_with_select_element.html"]];
    [_theWebView loadRequest:request];
}

Fortunately, the project I'm working on wasn't making use of SLPagingView so I could removed it.

@arturmalek
Copy link

Did you find a solution ? I have the same problem...

@LeandroHub
Copy link
Author

It's been a while, now. But I don't remember finding a solution. I just removed SLPagingView from the project. :(

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

No branches or pull requests

2 participants