SLPagingView icon indicating copy to clipboard operation
SLPagingView copied to clipboard

WKWebView can't handle combo box correctly

Open LeandroHub opened this issue 10 years ago • 2 comments

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.

LeandroHub avatar Sep 15 '15 15:09 LeandroHub

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

arturmalek avatar Jan 26 '16 22:01 arturmalek

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

LeandroHub avatar Jan 27 '16 17:01 LeandroHub