StefanLage / SLPagingView

Navigation bar system allowing to do a Tinder like or Twitter like
MIT License
1.01k stars 85 forks source link

WKWebView can't handle combo box correctly #42

Open LeandroHub opened 9 years ago

LeandroHub commented 9 years ago

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 commented 8 years ago

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

LeandroHub commented 8 years ago

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