Search code examples
cordovawindows-phone-8win-universal-apphybrid-mobile-appvisual-studio-cordova

Text input focus issue on Windows Phone (Universal) with Cordova


I'm currently building a mobile app using Cordova platform. The app was targeted on Android, iOS and Windows Phone 8. Recently, I had to change the latter to Windows Phone 8.1 (Universal). After adding the winstore-jscompat library and making couple changes to CSS everything seems to work the same way.

Only thing that is not working is scrolling to focused element. In Windows Phone 8 it looks like this:

Before WP8 (Ignore the darker rectangle on the bottom)

Before WP8

And After WP8

After WP8

But on Windows Phone Universal the view is not going up to fit to the screen and the cursor is in weird place.

Before WP8.1 (Universal)

Before WP8.1

And After WP8.1 (Universal). You can see cursor in the place marked by a red arrow. After WP8.1

I'm using Cordova Tools in Visual Studio 2015 CTP 6 (14.0.22609.0). Using built project from /bld directory gives the same results.

Has anyone came across such bug? How can I fix this?


Solution

  • Upgrading Cordova to version 5.0.0 resolved this problem.

    Cordova Windows Phone input