Wednesday, 19 December 2018

iOS WKWebView Option Select Triggering Too Late

I am using a WKWebview for a sign up form that exists on my web app. There is a dropdown (option + select) to select a students 'degree'.

When you select the item, nothing happens.

When you press 'done' on the iOS keyboard, nothing happens besides the keyboard lowering

Finally, when you RESELECT the dropdown, the value updates correctly.
I verified that it was not just a visual issue but a value issue by placing some javascript:

$('select').on('change', function() {
    window.webkit.messageHandlers.js.postMessage(`SELECTED `+this.value);
});

This confirmed my issue by showing a message in xcode, not when i select, not when i dismiss keyboard, but only when i RESELECT the dropdown a second time.

No clue whats causing it or how to fix it. Any ideas?
Heres a video: https://streamable.com/1sry8



from iOS WKWebView Option Select Triggering Too Late

No comments:

Post a Comment