Cannot read property 'getBoundingClientRect' of undefined, on keyboard show


#1

Hello!

Since I updated my app to Cordova 3.6.4 , I see a javascript error on the WebView console (using Chrome Remote Debugging).

Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined

The error shows up whenever the keyboard is shown (whenever an input gets focus…) and it happens inside ionic.bundle.js on line 3995. Apparently keyboardActiveElement is undefined:

/**
 * On keyboard open sets keyboard state to open, adds CSS to the body
 * indicating the keyboard is open and tells the scroll view to resize and
 * the currently focused input into view if necessary.
 */
function keyboardShow() {
  var elementBounds = keyboardActiveElement.getBoundingClientRect();  // <-- here
  var details = {

See attached screenshot if it helps.
Any ideas? The app continues to run without any problems though.

Thanks!


#2

Im getting the same error sometimes when I open the mail plugin. You found a solution?


#3

Unfortunately not. Stll there, but the apps works fine anyway.


#4

Same problem here. Any solution ?


#5

This was fixed in rc5.