mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Fix blurring the editor when no hidden input is present
This commit is contained in:
@@ -1421,7 +1421,8 @@ class TextEditorComponent {
|
||||
// listener to be fired, even if other listeners are bound before creating
|
||||
// the component.
|
||||
didBlur (event) {
|
||||
if (event.relatedTarget === this.refs.cursorsAndInput.refs.hiddenInput) {
|
||||
const {cursorsAndInput} = this.refs
|
||||
if (cursorsAndInput && event.relatedTarget === cursorsAndInput.refs.hiddenInput) {
|
||||
event.stopImmediatePropagation()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user