ui-grid icon indicating copy to clipboard operation
ui-grid copied to clipboard

error 'focus' undefined

Open mxreppy opened this issue 13 years ago • 3 comments

When scrolling over the grid I get an error

Uncaught TypeError: Object [object Object] has no method 'focus'

which corresponds to ng-viewport.js line 24. Could that line be patched? Ideally I'd fork and submit a pull request, which in theory I know how to do although the reality is that I never think I have the time to go through the steps (I'm still new to git...).

Locally I've been patching as

if( elm.focus ) {elm.focus(); }

mxreppy avatar Apr 11 '13 16:04 mxreppy

Oh and if it matters, I'm using MacOS 10.8, and see this in Chrome, FF & Safari

mxreppy avatar Apr 11 '13 16:04 mxreppy

this seems like a feasonable patch. added in 382795cb6840e67ef5325d14de77b243fa45c040

orneryd avatar Jun 04 '13 02:06 orneryd

Thanks, Tim. FYI and for future reference I am pretty sure this was a missing property due to an incorrect load order for JS libraries with Angular, jquery, Bootstrap and I don't know what else... (as discussed in several other issues)

mxreppy avatar Jun 04 '13 14:06 mxreppy