-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot read property 'focus' of null #1
Comments
@yasaricli I'll take a look, thanks for letting me know. |
Check for a null lastActiveElement before attempting to focus it. This fixes #1.
👍 |
[Enter steps to reproduce below:]
Atom Version: 1.5.0-beta0 Stack TraceUncaught TypeError: Cannot read property 'focus' of null
Commands
Config{
"core": {
"autoHideMenuBar": true,
"ignoredNames": [
"\"node_modules\"",
"\"bower_components\"",
"\".git\"",
"\".tmp\"",
"\".sass-cache\"",
"\"app/assets\"",
"\"architecture\"",
"\"docs\"",
"\"build\"",
"\"dist\"",
"\"vendor\"",
"\"server/logs\"",
"\"admin/assets\"",
"\"*.css\"",
"\"*.map\"",
"\"*.scss\"",
"\"*.bak\"",
"\".elasticbeanstalk\"",
"\".cache-require-paths.json\"",
"\"server/uploads\""
],
"packagesWithKeymapsDisabled": [
"symbols-view",
"refactor"
],
"projectHome": "/home/jackson/repositories",
"themes": [
"one-dark-ui",
"base16-tomorrow-dark-theme"
]
}
} Installed Packages# User
highlight-selected, v0.11.1
linter, v1.11.3
linter-jshint, v1.2.2
minimap, v4.19.0
minimap-autohide, v0.10.1
minimap-find-and-replace, v4.4.0
minimap-selection, v4.3.1
refactor, v0.6.0
rest-client, v0.5.0
terminal-plus, v0.14.5
# Dev
No dev packages |
I'm getting the same error: [Enter steps to reproduce below:]
Atom Version: 1.7.0-beta4 Stack TraceUncaught TypeError: Cannot read property 'focus' of null
Commands
Config{
"core": {
"allowPendingPaneItems": false,
"disabledPackages": [
"language-markdown"
],
"ignoredNames": [
".git",
".osc",
".svn",
".hg"
],
"themes": [
"atom-dark-ui",
"one-dark-syntax"
]
},
"terminal-plus": {
"core": {},
"style": {},
"toggles": {
"autoClose": true
}
}
} Installed Packages# User
atomic-chrome, v0.3.0
build, v0.58.0
file-icons, v1.6.20
language-gentoo, v0.9.0
language-liquid, v0.4.0
language-lua, v0.9.4
language-matlab-octave, v0.1.1
language-rpm-spec, v0.9.0
language-sage, v0.3.0
language-scilab, v0.1.0
package-sync, v1.0.0
pigments, v0.26.0
project-manager, v2.9.0
terminal-plus, v0.14.5
# Dev
No dev packages |
Getting the same error: Atom Version: 1.4.3 Stack TraceUncaught TypeError: Cannot read property 'focus' of null
Commands
Config{
"core": {
"disabledPackages": [
"linter-js-standard"
],
"themes": [
"atom-material-ui",
"oceanic-next-dark"
]
},
"terminal-plus": {
"core": {},
"style": {
"theme": "dracula"
}
}
} Installed Packages# User
angularjs, v0.3.4
atom-material-ui, v1.2.10
atom-typescript, v8.8.1
browser-plus, v0.0.60
browser-refresh, v0.9.0
color-picker, v2.1.1
file-icons, v1.7.3
jsformat, v0.9.3
jshint, v1.8.5
language-babel, v2.17.3
language-javascript-jsx, v0.3.7
linter, v1.11.4
linter-flow, v5.1.0
minimap, v4.22.1
minimap-find-and-replace, v4.5.1
oceanic-next-dark, v0.0.8
open-in-browsers, v0.0.13
pigments, v0.26.0
react, v0.15.0
react-es6-snippets, v0.3.0
react-snippets, v0.4.2
source-preview-babel, v0.1.1
terminal-plus, v0.14.5
webbox-color, v0.5.9
# Dev
No dev packages |
Getting some error ! :us' of null
Config{} Installed Packages# User
minimap, v4.23.2
pigments, v0.26.0
terminal-plus, v0.14.5
# Dev
No dev packages |
same here on debian: [Enter steps to reproduce below:] it just happened out of nowhere (switched desktops) Atom Version: 1.7.3 Stack TraceUncaught TypeError: Cannot read property 'focus' of null
Commands
Config{} Installed Packages# User
git-plus, v5.13.4
minimap, v4.23.5
pdf-view, v0.50.0
pigments, v0.26.2
terminal-plus, v0.14.5
# Dev
No dev packages |
Ran into the same problem. I looked over the code and it may be a race condition. The use case scenario would be one where Suggested change:
Original handleFocus = =>
if @returnFocus
setTimeout =>
@returnFocus.focus()
@returnFocus = null
, 100 Changed handleFocus = =>
if @returnFocus
setTimeout =>
if @returnFocus
tempFocus = @returnFocus
@returnFocus = null
tempFocus.focus() if tempFocus
, 100 |
[Enter steps to reproduce below:]
Atom Version: 1.0.11
System: Mac OS X 10.10.5
Thrown From: terminal-plus package, v0.1.2
Stack Trace
Uncaught TypeError: Cannot read property 'focus' of null
Commands
Config
{ "core": {} }
Installed Packages
The text was updated successfully, but these errors were encountered: